Php Check If Array Of Pointers