Js Check If Index Exists In Array Literal An Array