pointer checking w/o bool