def is_named(template, label):
    """
    Check if the name of the label is in template

    :param template: template of labels
    :param label: label to check
    :return: True if label's name is in template (bool)
    """
    for temp in template:
        if(temp.n == label.n):
            return True
    return False