I don't know if there is a general preference for the library, but all else being equal, I personally like using explicit types here. `bool` is only 1 more character than `var`, so it is not much more compact...