moved the ifDisabled function

moved the ifDisabled function to plugin's global namespace