use present? instead of any? to avoid nil.any?