Typescript Loop Through Object Php