Mmm... I would have done the following instead:

```php
$semanticPathinfo = $request->attributes->get( 'semanticPathinfo' ) ?: '/';
```

Then you can avoid the OR condition :wink: