public function offsetExists($offset)
    {
        if ($this->index_field === null) {
            return isset($this->objects[$offset]);
        }

        return isset($this->objects_by_index[$offset]);
    }