def is_empty_line(line):
    """
    Return true iff line contains only whitespaces or is empty.

    Preconditions: None

    @type line: str
    @rtype: bool
    """
    return len(line.lstrip()) == 0