Js Check If Array Of Pointers