@staticmethod
def tag_in_parents(tag, block):
    """Check if given tag is in blocks parents"""
    while block:
        if block.name == tag:
            return True
        block = block.parent
    return False
