<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_group_name_exists(self, group_name):
 """ check if group with given name is already exists """

        groups = self.m["groups"]
        for g in groups:
            if (g["group_name"] == group_name):
                return True
        return False