Could we just use `$.toggle()` instead of checking for the open selector? Ditto with the $.fn.restore.