Adding checks for passing dead entities to the system, and a new isAlive() function