from typing import List


def elements_identical(li: List) -> bool:
    """Return true iff all elements of li are identical."""
    if len(li) == 0:
        return True

    return li.count(li[0]) == len(li)