```php if ($finder->hasResults()) { ... } ``` See https://github.com/symfony/symfony/pull/23471