Define guards around bool definition.