Hello there!
So I’m working on simple plugin which will change our brandings depending on your choice in plugin UI.
Now I’m facing the issue if the instance doesn’t have a certain variant called “Brand” it will return the error. It can’t change something that is not there, right?
So I’m wondering if there’s any possibility to build some “if” which will basically say: “If instance has certain variant (in our case called Brand), do something. If not leave it be.”
Hope it you can help. Thanks!