Typescript Check Array Contains Spark Energy