Removed warnings by assigning to bool

There's no mention in the style guide of whether the `!!value` or `value != 0` syntax is preferred for casts to bool. I asked around on IRC and `value != 0` seems to be preferred.