Typescript Empty Array Length Php