Can it really have multiple keys in the `from` object? If not, the hasOwnProperty check should be left out, and an empty object should be set every time, right?