def to_bool(value: str) -> bool:
    """
    Convert a string to a boolean.

    Arguments:
        value: The string to convert.

    Returns:
        True or False.
    """
    return value.lower() not in {"", "0", "no", "n", "false", "off"}