Restore to:
```php
if ($fault instanceof \Exception) {
```
As noted in previous comments, does the same thing more quickly and more succinctly.