get_option_state function now looks a lot prettier using dict.get() method