(#23381) add is_bool() function
Merge pull request #211 from jhoblitt/function_is_bool

(#23381) add is_bool() function