Hide a video section if no META data is entered

I am looking to hide a video section on a collection page in the Dawn theme that is driven by META data. How do I accomplish this?

maybe with a liquid bit like…

{%- if product.metafields.custom.fieldID == blank -%}
// add some javascript to hunt and hide the element
{%- endif -%}

or like this to output the vid in the first place only if it has one

{%- if product.metafields.custom.fieldID != blank -%}

// add the video element html + liquid url

{%- endif -%}

I tried to wrap this code in the JSON file but it did not let me save…

“feacf191-d7b3-438d-bc89-4aab226dc7df”: {
“type”: “video”,
“settings”: {
“heading”: “Artist Video if applicable”,
“heading_size”: “h2”,
“enable_video_looping”: false,
“video”: “{{ collection.metafields.custom.artist_video_if_applicable_.value }}”,
“video_url”: “”,
“description”: “”,
“full_width”: false,
“color_scheme”: “accent-1”,
“padding_top”: 36,
“padding_bottom”: 36
}
}
},