@param string $name The data item name

@return bool true if the default value has been applied; otherwise, false
12635
protected function applyDefaultValue($name)
    {
        if (!isset($this->defaults[$name])) {
            return false;
        }

        $value = $this->defaults[$name];
        if (is_callable($value)) {
            try {
                $this->items[$name] = call_user_func($value, $this->context);
            } catch (\BadMethodCallException $e) {
                return false;
            }
        } else {
            $this->items[$name] = $value;
        }

        return true;
    }
893392
public function hasAttr(string $name): bool {
        return (bool)$this->collection()->reduce(function($carry, $node) use ($name) {
            if ($node->hasAttribute($name)) {
                return true;
            }

            return $carry;
        }, false);
    }
1018104
public function __isset($name)
  {
    $name = $this->get_field_name($name, FALSE);
    if (isset($this->_object[$name])) return TRUE;
    // check for dirties...
    if ($this->get($name)) return TRUE;
    return isset($this->_object[$name]);
  }
630166
public function __isset($name)
    {
        $getterMethod = 'get' . ucfirst($name);
    
        if (!method_exists($this, $getterMethod)) {
            return false;
        }
    
        return (($this->$getterMethod() !== null) ? $this->$getterMethod() : false);
    }
769155
public function hasItemData($name): bool
    {
        if (func_num_args() > 1)
            $name = func_get_args();

        return array_key_exists($this->getItemKey($name), $this->getData());
    }
656989
public function exists($name)
    {
        list($key, $extra) = $this->_splitOptionName($name);
        if (isset($this->_values[$key]) && is_array($this->_values[$key]) && array_key_exists($extra, $this->_values[$key])) {
            return true;
        }
        if (isset($this->_options[$name])) {
            return isset($this->_options[$name]['default']);
        }
        return false;
    }
312842
public function hasParameter($name)
    {
        if (array_key_exists($name, $this->parameters)) {
            if (null !== $this->parameters[$name]['value']) {
                return true;
            }
        }

        return false;
    }
1318822
public function is($name, $default = true)
    {
        $value = (isset($this->{$name}))?
                    (string)$this->{$name} :
                    (isset($this[$name]))?
                        (string)$this[$name] : null;


        if (is_bool($default)) {
            if ($value === null) {
                return $default;
            }

            $result = $this->_toBoolean($value);
        } else {
            $result = (strcasecmp($value, $default) === 0);
        }

        return $result;
    }
221529
protected function getDefault($name)
  {
    if (is_null($this->_defaultData)) {
      $subject = $this->getSubject();
      if (!is_null($subject) && $subject instanceof Options_Subject) {
        $this->_defaultData = $subject->getDefaultOptions();
      } else {
        $this->_defaultData = array();
      }
    }
    
    if (isset($this->_defaultData[$name])) {
      $value = $this->_defaultData[$name];
    } else {
      $value = null;
    }
    
    return $value;
  }
354338
public function has($name)
    {
        return isset($this->data[$name]) && !in_array($this->data[$name], ['', null, false, array()], true);
    }
487243
public function sBoolOpt(string $name, $default = false): bool
    {
        $val = $this->sOpt($name);

        return \is_bool($val) ? $val : (bool)$default;
    }
498027
protected function hasModelValue($name)
    {
        if (!isset($this->model)) {
            return false;
        }

        return isset($this->model->{$name});
    }
228575
public function __isset($name)
    {
        switch ($name) {
            case 'rawValue':
                return ($this->rawValue !== null);
                break;
            case 'value':
                return ($this->value !== null);
                break;
            //return true;
        }
        return false;
    }
189421
public static function defaultTo($name){
    if (isset(self::$connections[$name])){
      self::$current = $name;
      return true;
    } else return false;
  }
746089
public function offsetExists($name)
    {
        $name = strtolower($name);
        if (!array_key_exists($name, $this->_data)) {
            return false;
        }
        return !empty($this->_data[$name]->value());
    }
1346556
public function __isset($name)
    {
        $isset = false;
        if (!empty($name)) {
            $isset = array_key_exists($name, $this->arguments);
        }
        return $isset;
    }
479482
public function get ($name, $default = null)
		{
			foreach ($this->_data as $d)
			{
				if ($d->name === $name)
					return $d->value;
			}

			return $default;
		}