I personally like ternary operators when language offers them:
```objectivec
configDict[@"useHttps"] = [sender isOn] ? @"YES" : @"NO";
```