If Statements to Query Filtered Dataset (Not Database)

I have a coworking website that has a dynamic page setup to show multiple locations. Some locations have meeting rooms, and other do not (see below):


I am trying to “collapse” the meetings strip IF the meeting rooms dataset is empty. Below is my feeble attempt. Any help would be much appreciated!

import wixData from 'wix-data';

$w.onReady(function () {
	wixData.query("#dataset1")
	.find()
	.then( () => {
    	if ($w("#dataset1").isEmpty) {
		$w("#columnStrip3").collapse();
		}
  	} );
});

Hi, What you want is to use: getTotalCount function. you can see explanation: Dataset - Velo API Reference - Wix.com