This is a syntax error. Can just be:
```php
if (!($project instanceof Project)) {
```