Create the is_granted expression language function