Function isBooleanControl