Typescript Get First Element Of Array If Exists Macro