use array_replace_recursive, as array_merge_recursive produces arrays for existing keys