I need to check if a defined object still exist. But with commands like getObjects(x.class) you can only check all objects of a class. In my game I have multiple enemies and if one gets shot it is deleted. When a bullet is on the way and the enemy gets killed it throws and error. Is there a way to ask if a defined object is still in the world?

