def is_member_of(userObj, groupObj):
    """
    Will determine is a user is a member of a group. Returns ``Tru`` or ``False``
    """

    if userObj.groups:
        for group in userObj.groups:
            if group.group_name == groupObj.group_name:
                return True
        return False
    else:
        return False