adds check to global to prevent warnings when class is used by multiple plugins