understanding array_replace_recursive