Fix handling of booleans from check functions.