import importlib


def check_ray() -> bool:
    """
    Checks if `ray` is installed.

    Returns
    -------
    A `bool` indicating whether `ray` is installed or not.
    """

    spec = importlib.util.find_spec('ray')  # type: ignore
    if spec:
        return True
    return False