typo in a is_boolean function