def _check_elements_equal(lst):
    """
    Returns true if all of the elements in the list are equal.
    """
    assert isinstance(lst, list), 'Input value must be a list.'
    return not lst or lst.count(lst[0]) == len(lst)
