def _validate_boolean(self, value):
    if (type(value) is not bool):
        raise RuntimeError('Value must be boolean')
def _validate_boolean(self, value):
    if (type(value) is not bool):
        raise RuntimeError('Value must be boolean')