Like this?
```javascript
if (window.ENV.COURSE_ROOT_URL) {}
```