Typescript Check Array Contains Spark