Redone how keys from persArr are gathered to a better solution I think.
renamed object to arr.