I would use dictionary for keeping record:
var settings: {
"option1": true,
"option2": false,
or…
"option3": 1,
"option4": 0 }
To add something just write settings.options5 = 1 and it will be created or overwritten if already present.
To delete smth use method erase("option2") though I think it's better to just switch it off, e.g. settings.options2 = 0