```
if(window.wgEnableUserLoginExt)
```

A bit shorter :)