I have an array created from a json_decode, which looks like below. I have 2 questions, one being the functionality not working as intended, and 2, a performance related que