This should be `if ($this->queryLogger instanceof Logging\QueryLogger) {`