Added a utility method to check if the plugin is loaded