/** * Array access. Check for existence using external_id or offset. */ public function offsetExists($offset) { if (is_string($offset)) { return $this->get($offset) ? true : false; } return parent::offsetExists($offset); }