use foo = foo.presence, not foo = nil if foo && foo.blank?