I think in this case you need to rethink your UI architecture. Why not do something like this:
if isPurchased { // process pro functions } else { // open paywall }