phash: better error checking for previous checkin