Actually:
```javascript
if (secure == null) secure = true;
```