public function isValid() { if (!$this->validated) { if ($this->getErrors()) { return FALSE; } $this->validate(); } return !$this->getErrors(); }