I think this is bad practice: a *test* function that actually *sets* a flag.