Shouldn't this be:
```php
null !== $locale
```
To be consistent with other parts of code?