Show / Hide Section based on query count?

I have a section that contains a previous next post widget. If there are no posts to display how can I hide the entire section?

I have been trying to use the conditions with:

Dynamic Data
{query_results_count}
<=
0

but that doesn’t work. Do I need to specify the query I am referring to? What am I missing please?

SOLVED. I didn’t realize that you can filter by adding the Bricks ID of the element. {query_results_count: id }