Plugin development: site settings "enabled" checkbox not working

Use if SiteSetting.myplugin_enabled to check for that.