Typescript Check Variable Is Array A Data