import pkg_resources


def require_package(name):
    """ Set a required package in the actual working set.

    Parameters
    ----------
    name: str
        The name of the package.

    Returns
    -------
    bool:
        True if the package exists, False otherwise.
    """
    try:

        pkg_resources.working_set.require(name)
        return True
    except:  # noqa: E722
        return False