public function hasBeenUpdated(): ?bool
    {
        if (! $this->lastStatement) {
            throw new DBALManagerException('This method should be called only after insertOrUpdate.');
        }

        $rowCount = $this->lastStatement->rowCount();
        if ($rowCount === 1) {
            return false;
        } elseif ($rowCount === 2) {
            return true;
        } elseif ($rowCount === 0) {
            return null;
        }

        throw new DBALManagerException('This method should be called only after insertOrUpdate. Got rowCount result: ' . $rowCount);
    }