`value` must be a string for this line to be reached so `value.nil?` will always return false. Also, the `?` is missing from `value.respond_to?(:blank)`