Typescript Get First Element Of Nullable Array Methods Php W3schools