After removing an entity, set its pointer to NULL. Then you can always check if(ent) {...} wink