Is it dead fix

You can use isDead public function to check if the AI is dead.