Is there a better way of seeing if an ID is valid that getting a pointer to it and checking if it's null?  (I genuinely don't know)