Hide and Show html code

I need that in case the image database360 is empty, the html hides otherwise it appears. Can someone help me? Sorry for the English but I think that’s it!

Thank you

$w.onReady( () => {
$w(“#dynamicDataset”).onReady( () => {
const itemUrl = $w(‘#dynamicDataset’).getCurrentItem().imagem360;
$w(‘#html1’).src = itemUrl;
if (itemUrl===“”) {
$w(‘#html1’).hide()
} else {
$w(‘#html1’).show()
}
});
});