Fix is_granted helper.