With Propshaft, this is handled by the resolver.
Rails.application.assets.resolver.resolve(logical_path).present?