I think you mean 0 or 1 only, right? That is the right thing to do, especially as adding up the booleans is a common operation used to count the number of True values.