public function isValid() {
        if($this->isRequired()) {
            if($this->getValue() == null) return false;
            if($this->getValue() == "") return false;
        }
        return true;
    }