/** * Check if the element is valid by using the valid object * * @return bool True if valid */ public function isValid() { return $this->valid->isValid() && empty($this->customErrors); }