add if statement for class redeclaration

This occurred when working on a WordPress plugin using this library and another plugin using the same library. I am referring to ActiveCampaign Subscription Forms plugin. To resolve this I added if statement the avoid redeclaration.