public function isError($set = false) { if ($set) { $this->setNumber(Message::ERROR); } return $this->getNumber() === Message::ERROR; }