public function isContextual(): bool
    {
        $collectionQuery = $this->collection->getQuery();
        if (!$collectionQuery instanceof Query) {
            return false;
        }

        return $collectionQuery->isContextual();
    }