Well, yes, the author described it as "a heuristic", which checking sentinel values would seem to match.