public function offsetExists($offset): bool
    {
        if ($this->isCached($offset)) {
            return $this->getCached($offset) !== null;
        }

        return $this->selectAggregate('COUNT')
            ->where('id = ', $offset)
            ->limit(1)
            ->run() === 1;
    }