convert if conditional on attrs to a select on sendable_attrs