def _check_if_list_of_featuregroups_contains_featuregroup(featuregroups, featuregroup_name, version):
    """
    Check if a list of featuregroup contains a featuregroup with a particular name and version

    Args:
        :featuregroups: the list of featuregroups to search through
        :featuregroup_name: the name of the featuregroup
        :version: the featuregroup version

    Returns:
        boolean indicating whether the featuregroup name and version exists in the list
    """
    match_bool = False
    for fg in featuregroups:
        if (fg.name == featuregroup_name and fg.version == version):
            match_bool = True
    return match_bool