I think you still should do "!!" because wgEnableVisualEditorUI might be not exported at all when VE is not enabled at all.