I prefer this style:

```php
if (!$user->isAccountNonLocked()) {
  throw new LockedException();
}

return $user;
```