```php
if (true === $hasValidToken($token)) {
    return;
}
// rest of the former if here
```