public function isAlive() { if ($this->entity !== null) { return $this->entity->isAlive(); } return false; }