I designed it just for strings because currently there were only string values to preserve. However it is really easy to add support for boolean values. I can just make "set_config_value" convert True to string "True" and False erase the key at all. Then you will check for existence of that key.