@cretan Does this handle the `undefined` case where passing it into `toggle` doesn't?