def check_parent(parent, alias, parent_aliases, exclude_lst):
    """
    Check if alias is equal to parent or a sub-alias
    :param parent:  parent alias to check for
    :param alias:   alias
    :param parent_aliases:  parent aliases
    :param exclude_lst:
    :return: True or False
    """
    candidate = (alias == parent or parent in parent_aliases)
    if candidate:
        candidate = (alias not in exclude_lst)
    return candidate