/**
  * Returns whether an element exists at a given offset. Required by the ArrayAccess interface.
  *
  * @param mixed $offset
  *
  * @return bool
  */
 public function offsetExists($offset)
 {
     if (is_numeric($offset)) {
         return $this->nth($offset) !== null;
     } else {
         return parent::offsetExists($offset);
     }
 }
 /**
  * Treats custom fields as array offsets.
  *
  * @param mixed $offset
  *
  * @return bool
  */
 public function offsetExists($offset)
 {
     if ($offset == 'title' || parent::offsetExists($offset) || $this->getFieldByHandle($offset)) {
         return true;
     } else {
         return false;
     }
 }
 /**
  * Treats custom fields as array offsets.
  *
  * @param mixed $offset
  * @return boolean
  */
 public function offsetExists($offset)
 {
     if (parent::offsetExists($offset) || craft()->fields->getFieldByHandle($offset)) {
         return true;
     } else {
         return false;
     }
 }