Fixed not correctly defining if plugin is loaded