Added isGranted snippet