Does this dataType have a default value. If so what is it.
@return bool
175484
public function hasDefault( &$default = null)
    {
        if( empty( $this->data['default']) ) {
            $default = null;
            return false;
        }
        $default = $this->data['default'];

        return true;
    }
571458
public function hasValidNewValue()
    {
        $value = $this->getNewValue();

        if (is_null($value) || false === $value) {
            return false;
        }

        if (is_string($value)) {
            return !is_empty_string($value);
        }

        return true;
    }
503141
private function validateType(): bool
    {
        switch ($this->options['type']) {
            case 'integer':
                $isValid = \is_int($this->value) ? true : false;
                break;
            case 'float':
                $isValid = \is_int($this->value) || \is_float($this->value) ? true : false;
                break;
            default:
                $isValid = \is_int($this->value) || \is_float($this->value) ? true : false;
                break;
        }
        if (!$isValid) {
            $this->setError(self::VALIDATOR_ERROR_NUMBER_INCORRECT_TYPE);
        }
        return $isValid;
    }
504877
public function getDefault()
    {
        $sDefault  = $this->oCi->config->item('languages_default');
        $oLanguage = $this->getByCode($sDefault);

        return !empty($oLanguage) ? $oLanguage : false;
    }
780026
public function exists()
    {
        $returnValue = (bool) false;
        try{
        	$returnValue = count($this->getTypes())?true:false;
        }
        catch(Exception $e){
        	;//return false by default
        }
        return (bool) $returnValue;
    }
1309058
protected function detectParameterType()
    {
        $this->setType(null);

        if ($this->defaultValue !== null) {
            $value = $this->defaultValue->getValue();
            if (is_array($value) === true) {
                $this->setType('array');
            }
        }

        return $this;
    }
897450
public function defaultData()
    {
        return [
            'property'    => null,
            'table'       => null,
            'value'       => null,
            'func'        => null,
            'operator'    => self::DEFAULT_OPERATOR,
            'conjunction' => self::DEFAULT_CONJUNCTION,
            'filters'     => [],
            'condition'   => null,
            'active'      => true,
            'name'        => null,
        ];
    }
208345
public function isPassedByReference()
    {
        if ($class = $this->reflection->getClass()
            and $class->isTrait()
        ) {
            return true;
        }
        if ($class = $this->reflection->getClass()) {
            $reflection = (new ReflectionClass($class))->getConstructor();
            foreach ($reflection->getParameters() as $param) {
                if (!$param->isDefaultValueAvailable()) {
                    return true;
                }
            }
            return false;
        }
        if ($this->reflection->isDefaultValueAvailable()) {
            return false;
        }
        // No default defined, but let's see if we can guess...
        if ($this->reflection->isArray()) {
            return false;
        }
        if (version_compare(phpversion(), '7.0', '>=')
            and $type = $this->reflection->getType()
        ) {
            return false;
        }
        if ($extracted = $this->extractParameterData()) {
            return false;
        }
        return true;
    }
576397
public boolean isDefault() {
		return (valueAsString != null && valueAsString.equals(defaultValueAsString)) ||
				(valueAsString == null && defaultValueAsString == null);
	}
1217537
public function getDefaultValue()
    {
        $default = $this->_default;

        if ($default && !$this->isScalar()) {
            $default = $default instanceof AnDomainAttributeInterface ? clone $default :
                        AnDomainAttribute::getInstance($this->_type);
        }

        return $default;
    }
1170660
public function getPhpSafeDefaultValue()
    {
        $value     = $this->getDefaultValue();
        $is_string = $this->hasType() && $this->getType()->getName() === 'string';

        if ($value === true) {
            return 'true';
        } elseif ($value === false) {
            return 'false';
        } elseif ($this->isDefaultValueConstant()) {
            if (strpos($this->getDefaultValueConstantName(), 'self') === 0) {
                return $this->getDefaultValueConstantName();
            }
            return '\\' . $this->getDefaultValueConstantName();
        } elseif (is_array($value)) {
            return '[]';
        } elseif (null === $value || ($is_string && $value === 'null' && $this->allowsNull())) {
            return 'null';
        } elseif (is_numeric($value) && !$is_string) {
            return (string) $value;
        }
        return var_export($value, true);
    }
317488
private function getValuesAsArray()
    {
        if ($this->value === null) {
            return is_array($this->defaultValue) 
                ? $this->defaultValue 
                : [ $this->defaultValue ];
        }
        return $this->value;
    }
349750
public function getDefault() {
		if( is_object($this->default) ) {
			$this->default = call_user_func_array($this->default->type, (array) $this->default->args);
		} else
		if( defined($this->default) ) {
			return constant($this->default);
		}
		return $this->default;
	}
613514
public function containsNullOnly()
    {
        $data = $this->getDataPlaceHolder();
        
        foreach ($data as $variable) {
            $value = $variable->getValue();
            
            if ($variable->isNull() === false) {
                return false;
            }
        }
        
        return true;
    }
486562
public function clear(): bool {
        $this->heap = \array_fill(0, $this->maxSize, null);
        $this->heap[0] = \PHP_INT_MIN;
        return \count($this->heap) === 1 && $this->heap[0] === \PHP_INT_MIN;
    }
720807
public function doDefaultAttributes()
    {
        foreach ((array)$this->attribute as $name => $value) {
            if (array_key_exists($name, $this->data)) {
                $this->data[$name] = $value;
            }
        }
        return ($this->data) ? $this->data : false;
    }
564059
public function isNumeric()
    {
        return ($this->IsNull()) ? false : ($this->baseType === BaseType::INTEGER || $this->baseType === BaseType::FLOAT);
    }