bool improvements

Change-Id: I294d197028d5ddf0642fadef05600accd91d0725
-Werror,-Wunused-private-field

Change-Id: Ib7d8fd7ff8a4f44dc699bc0b72a8c438acebc0ec