Mirroring c# in php for more object oriented and detailed calls, most likely not more performant, but possibly as the variable nesting isn't as deep in some cases