Add checks to test if enabled is bool

  fixes: bug #1167593

Change-Id: Ie18fa17f16383f31d8aa083e69fa501d80eb4553
Merge "Add checks to test if enabled is bool"