isBoolean functionality and tests