public function checkRequired()
    {
        if (!$this->required || $this->required == "") {
            return false;
        } elseif ($this->required == "Y") {
            $required = true;
        } elseif ($required != "N") {
            $required = false;
        } else {
            $required = Expression::evaluateExpression($this->required, $this->getDataObj());
        }
        return $required;
    }