FluentDOM\Query\Css::offsetExists PHP Method

offsetExists() public method

Allow to use isset() and array syntax to check if a css property is set on the first matched node.
See also: ArrayAccess::offsetExists()
public offsetExists ( string $name ) : boolean
$name string
return boolean
    public function offsetExists($name)
    {
        if ($properties = $this->getStyleProperties()) {
            return isset($properties[$name]);
        }
        return FALSE;
    }