Check whether there are any errors.
public function hasErrors() : bool { return !empty($this->errors); }