import logging


def exists_handler_with_name(name: str) -> bool:
    """
    >>> discard = set_stream_handler()
    >>> assert exists_handler_with_name('stream_handler')
    >>> discard2 = set_stream_handler_color()
    >>> assert exists_handler_with_name('stream_handler_color')
    >>> assert not exists_handler_with_name('unknown_handler')

    """
    handlers = logging.getLogger().handlers
    for handler in handlers:
        if hasattr(handler, 'name'):
            if handler.name == name:
                return True
    return False