Relevance to check if a computer is subscribed to a custom site

I’m writing a fixlet that will, if certain conditions are met, unsubscribe computers from a custom site. However it should only run if the computer is already subscribed to the site. How do I check this?

Ah, never mind I figured it out a few minutes after I posted this question.

Here’s the answer:
exists site whose (type of it = “Custom Site” and site tag of it = “CustomSiteName”)