public function isValid() { if ($this->valid === NULL) { $this->valid = !$this->form->hasErrors($this->name); } return $this->valid; }