/** * Check if there were any errors added * * @return boolean */ public function hasErrors() : bool { return !ArrayHelper::isEmpty($this->list); }