Php Check If Multidimensional Array In Typescript