I am making use of the ability to clear the cache dynamically, as explained here: https://cometcache.com/kb-article/clearing-the-cache-dynamically/
It works well, but I have just discovered that I get a fatal error if I deactivate Comet Cache (e.g. for troubleshooting something else). I think the best way to resolve the issue would be to add a conditional, so that my dynamic function will run only if it detects that Comet Cache is active.
Can anyone suggest what that conditional might be?