We might consider a constant to represent the default ID and compare with that. Comparing with -1 requires some knowledge of impl details which seems brittle.