Better ways to deal with booleans