Typescript Non Empty Array Php