Typescript Check If Variable Is String Array Arduino