def _is_empty(textrange):
    """Here `empty` means some characters exists except
    `IGNORE_CHARS` (e.g. `\r`)
    """
    IGNORE_CHARS = {"\r", "\013"}
    return not bool(textrange.text.strip("".join(IGNORE_CHARS)))