So I have a plugin with a Twig Extension that does it's thing. If I were to disable my plugin I will get the expected error:
The "extensionName" extension is not enabled.
Whenever I'm referring to anything to do with my plugin, I rely on the usual "is defined", "is not empty", "|default()", etc... options as appropriate fallbacks/checks incase my plugin fails.
However, short of doing a full check on wether my plugin is installed everytime, there doesn't seem to be an elegant solution for checking extensions are enabled until it's too late (and the page fails to load).
Any ideas on a workaround?