Js Check If Index Exists In Array Literal And Inferential Comprehension