as for the use of ``array_merge`` .. it will just work for flat arrays, for more deeply nested ``array_merge_replace`` might work better .. but can also be tricky.