Refactor combine_with

Using recursion and fixing error skipping 'null' value when combining