I did notice my typo, but I cannot edit the post.
Unfortunately, I cannot feasibly change the way the data is stored.
I would normally choose to use a much more standard practice like you suggested, or normalize the data into other collections.
I can look at the ObjectToArray and reduce functions, thank you.