protected function isAttributeSet(SimpleXmlElement $node, $name)
    {
        $attributes = $node->attributes();

        return isset($attributes[$name]);
    }
protected function isAttributeSet(SimpleXmlElement $node, $name)
    {
        $attributes = $node->attributes();

        return isset($attributes[$name]);
    }
protected function isAttributeSet ( SimpleXmlElement $ node , $ name ) { $ attributes = $ node -> attributes ( ) ; return isset ( $ attributes [ $ name ] ) ; }
Checks whether an attribute exist under a specific node.

@param SimpleXMLElement $node The instance of SimpleXMLElement
@param string           $name The name of attribute

@return boolean
Checks whether an attribute exist under a specific node .