sanitize boolean