If the target keys and the source keys were identical between the source and target then the copy within the array would hit an error.
The recursive search through the array would also have an issue, that wouldn't resolve the search.
By separation of the source and target arrays the reads, writes, and unsetting of data no longer interferes with themselves.
If the target keys and the source keys were identical between the source and target then the copy within the array would hit an error. The recursive search through the array would also have an issue, that wouldn't resolve the search. By separation of the source and target arrays the reads, writes, and unsetting of data no longer interferes with themselves.