Added method to the dynamic modules to check if the module is enabled, allowing for more complex dynamic grammars.