Use isBoolean instead of is(T == bool)