Casting ints to bools is frowned upon. Instead, compare to 0.