public function setActive($active) { if (empty($active)) { $active = false; } $this->active = (bool) $active; return $this; }