isLoggedIn is static, so if you write just
```php
return self::isLoggedIn() ? new User() : null;
```
we avoid instantiating the class in case there's no user logged in...