Would this work? `settings[param[:name]] = input unless input.empty?` Or is my logic off?