def METHOD_NAME(self, group, props):
    if group.startswith('-'):
        return self.check_group_del(group.lstrip('-'))
    r = 0
    try:
        groupinfo = grp.getgrnam(group)
    except KeyError:
        if self.try_create_group(props):
            perror('group', group, 'does not exist')
            return RET_ERR
        else:
            pinfo('group', group, 'does not exist and not enough info to create it')
            return RET_OK
    for prop in self.grt:
        if prop in props:
            r |= self.check_item(group, prop, props[prop], getattr(groupinfo, self.grt[prop]), verbose=True)
    return r