public function offsetExists($offset)
{
if (strpos($offset, ':') !== false) {
list($ns, $attr) = explode(':', $offset, 2);
return $this->_element->hasAttributeNS(Horde_Xml_Element::lookupNamespace($ns), $attr);
} else {
return $this->_element->hasAttribute($offset);
}
}