Check If String Array Is Empty Typescript Vs Go