[RUBY-34] return nil if a value is empty

skip empty values