public function hasErrors() { if (empty($this->errors)) { $this->checkRequirements(); } return in_array(self::STATUS_ERROR, $this->errors); }