Replaced array_merge with array_merge_recursive