`SecurityContext` throws a further [exception](https://github.com/symfony/symfony/blob/v2.3.9/src/Symfony/Component/Security/Core/SecurityContext.php#L60-L62) if there's no token and you call `isGranted()`. The docs are only speaking about Twig, because the page is about customzing the Twig error templates. But it applies fot the code too