def METHOD_NAME(module, conda, name):
    """
    Check whether a package is installed. Returns (bool, version_str).
    """
    command = [
        conda,
        'list',
        '^' + name + '$'  # use regex to get an exact match
    ]
    command = _add_extras_to_command(command, module.params['extra_args'])
    rc, stdout, stderr = module.run_command(command)
    if rc != 0:
        return False, None
    version = stdout.strip().split()[-2]
    return True, version