def _is_ascii(text):
    """
    Args:
        text (str): Text to check.

    Returns:
        bool: whether or not the text can be encoded in ascii.
    """
    return all(ord(char) < 128 for char in text)