You use the method from the 3rd party module. But you check if module enabled. Which type of dependency you should set in composer.json?