People are confused whether to use -1 or 0 for invalid ID. Better to solve the problem once and for all by ``` c++ namespace dm { const int INVALID_ID = -1; inline bool isValidId(int id) { return id > 0; } } ```