If you really don't want to use the other variables you can simply do this instead of ```nodes, _, _ =```:

```
node = Chef::Search::Query.new.search(:node, "roles:keystone-server AND keystone_config_environment:keystone-config-#{node[cookbook_name][:keystone_instance]}").first.first
```

Than you can simply check for nil or not.