Hide image and text on dynamic page if there's no input in database

Thank you @russian-dima !

I’ve added the code but unfortunately I get an error. Can you tell me what went wrong?

$w.onReady(()=>{
  $w('#dynamicDataset').onReady(()=>{
 let item $w('#dynamicDataset').getCurrentItem(); console.log(item)
 if(item) {
      console.log("Item found!")
      $w('#image11').show();
 )}
 else{
      console.log("Item not found!")
      $w('#image11').hide();
 }
 });
} );