How to Hide Elements based off other empty Elements?

Hi,

This is going to be embarassing.

$w(“#dynamicDataset”).onReady(() => {
const item = $w(“dynamicDataset”).getCurrentItem();
find (“#text29”)
if (!item.text)
$w(“#group1”).hide();

}

I know I have code missing, but I don’t where to go from there.
#group1 is the element I’m trying to hide when #text29 is empty.
How do I create that reaction?