I have an object containing an array which is recursive to an arbitrary depth. I\'m trying to set the value of a variable in the parent object, but I only know how to set it