added utility method to check if a plugin is loaded