I would change it to

```php
if (class_exists($class, self::$autoloadAnnotations)) {
```