Check If Array Contains Element Typescript Enum For Loop