Code style improvement
Add functions to check if an ID exists/is (in)valid