public function offsetGet($offset)
{
if ($offset instanceof IMP_Ftree_Element) {
return $offset;
}
/* Optimization: Only normalize in the rare case it is not found on
* the first attempt. */
$offset = strval($offset);
if (isset($this->_elts[$offset])) {
return new IMP_Ftree_Element($offset, $this);
}
$offset = $this->_normalize($offset);
return isset($this->_elts[$offset]) ? new IMP_Ftree_Element($offset, $this) : null;
}