IMHO too much logic for one line, I think this (or something similar) is equivalent and I feel easier to parse:
```Ruby
->(obj) do
   if obj.is_a?(Hash) 
     obj.each { |_, v| v.deep_merge!(hash) unless v[TYPE].present? } 
  else
     obj
  end
end
```