Remove duplicate isBoolean method