Local variables do not get initialized to a default value. That only happens with class and instance member variables. You have to explicitly initialize local variables before you can use them in a boolean expression.
The best ideas are the crazy ones. If you have a crazy idea and it works, it's really valuable.—Kent Beck