public function isValid() { $this->validate(); $errors = $this->getErrors(); return empty($errors); }