add load_entity method (used to check if entity is deleted)