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;
    }
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;
    }
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 ; }
Check if a row with a specific id exists.

@see ArrayAccess
@param mixed $offset
Check if a row with a specific id exists .