Show message if image not forund

I have a repeater with a key press event search input. The repeater is set only to show one item. The search works fine. I can not get the “No Image Available” text to show when an item does not have an image. Here is the code I have below. I would greatly appreciate the help.

import wixData from ‘wix-data’ ;

export function searchInput_keyPress_1 ( event ) {
let SearchValue = $w ( “#searchInput” ). value ;
$w ( “#claimListingDataset” ). setFilter ( wixData . filter (). contains ( ‘propertyAddress’ , SearchValue ));

wixData . query ( "ClaimFreeMLSListing" ) 
    . find () 
    . then ( ( results ) => { 
        **let**  propertyImage  =  results . items [ 0 ]. propertyImage ; 
        **if**  ( propertyImage  ===  **undefined**  ||  propertyImage  ===  "" ) { 
            $w ( '#noImageMessage' ). show (); 
        } 
    } ) 
    . **catch** ( ( err ) => { 
        **let**  errorMsg  =  err ; 
        console . log ( errorMsg ); 
    } ); 

}

Anyone?

Seems like ChatGPT will replace coders. I just coded everything on my site with ChatGPT and it was a breeze. LOL. Might as well close this useless forum.