Well, must be some other code in there that is doing roughly the same thing. Clearly that code is reading the cookie and choosing the tab to set, but there may well be other places doing similar stuff.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.