I saw, I think you should check if there is a assertion for that permission before call `assert()` in `isGranted()`. It does not makes sense to call `assert()` if there is no assertion.

`assert()` method is used to "assert a assertion" :smile:

See, `assert($assertion` makes more sense than `assert($permission`. No? (: