def bundle_exists(name):
    """
    Check whether or not a ruby tool exists in
    the os.cwd using bundler.

    This assumes that you installed bundler packages
    into ./bundle as documented in the README.

    @return boolean
    """
    try:
        installed = subprocess.check_output(['bundle', 'list'])
    except subprocess.CalledProcessError or OSError:
        return False
    return installed in name
dataset/ETHPy150Open markstory/lint-review/lintreview/utils.py/bundle_exists/swapped operands of `in`