Since we're not so strict to Object Calisthenics and this is heavily consumed method, I'd suggest taking this approach:

```php
if ($this->cacheLogger) { 
    $this->cacheLogger->queryCacheMiss($queryCache->getRegion()->getName(), $querykey); 

    if ($cached) {
        $this->cacheLogger->queryCachePut($queryCache->getRegion()->getName(), $querykey); 
    }
}
```