Upgrades->Hide ads — whats teh function

I did a search and couldn’t find exactly what i was looking for.

If I have a Div with some JS from my ad server — what conditional function should I use to check if a user has purchased the hide ads function?

I want to be able to hide ALL ads from the user — and I’m using custom ad js embedded within the templates.

ex. if(!is_upgraded_ads) {

blah blah blah

}