def all_equal_ivo(lst):
    """
    Check if all elements are equal.
    Source: https://stackoverflow.com/questions/3844801/check-if-all-elements-in-a-list-are-identical
    :param lst:
    :return:
    """
    return not lst or lst.count(lst[0]) == len(lst)