At least, according to the Symfony coding guidelines this should then be:
```php
return 'Symfony\Component\Security\Core\User\User' === $class;
```