What about changing to:

```php
if (0 === $results->getFailureCount()
    && 0 === $results->getWarningCount()
    && 0 === $results->getUnknownCount()
) {
    return;
}

// ...
```