Hiding an element in a filtered dataset

Hello. I’m creating a page for a Jobs board, and want to be able to hide a button linking to “apply online” when the employer doesn’t have an online application.

Using examples I found here and elsewhere I’ve been able to hide and show elements successfully on other pages, but for me (VERY new to this) the situation is complicated by the fact that I’ve already added this code, to filter the items by date and approval status:

import wixData from 'wix-data';

$w.onReady(function () {

    $w("#jobPostings").onReady(() => {

        let sToday = new Date().toISOString().split('T')[0];

        $w("#jobPostings").setFilter(wixData.filter()
        .le("datePosted", sToday).ge("expirationDate", sToday) .eq("approved", true))
         .then(() => {
                console.log("Dataset is now filtered");
                $w('#jobRepeater').show();

        
            })
            .catch((err) => {
                console.log(err);

    } );

    });

	});

Where and how do I add the code to hide or show the Apply button depending on whether there is a URL in that field in the dataset? Everything I’ve tried has either hidden the button from every item, or doesn’t work at all.

Any help would be appreciated!