Correct way to use booleans