WidgetKit Disable Intent Parameter if no data

Howdy,

I was wondering how I could disable an Intent Option from opening up?

The large sized widget is able to disable the "Source" parameter if there isn't a network connection. I'm wanting to disable it if there is not data able to be displayed. I'm not watching to display an error or empty list.

I did my best to search but wasn't able to find any answers.