added more checks to isProbablePointer