Similar to ROLE() and ISROLE() functions, it would be great to have GROUP and ISGROUP so that you can return all of the users groups they belong to and check if they belong to a group.