         }
 
         let codepoint = EscapeMode.extended.codepointForName(name)
-        if (codepoint != empty) {
+        if codepoint != empty {
             codepoints[0] = UnicodeScalar(codepoint)!
             return 1
         }

                codeKeys[index] = cp1
                nameVals[index] = name

                if (cp2 != empty) {
                    var s = String()
                    s.append(Character(UnicodeScalar(cp1)!))
                    s.append(Character(UnicodeScalar(cp2)!))
                    multipoints[name] = s
                }
                i = i + 1
            }
        }



        public func nameForCodepoint(_ codepoint: Int ) -> String {
            //let ss = codeKeys.index(of: codepoint)
            
            guard let  index = codeKeys.index(of: codepoint) else{
                return emptyName
            }
            // the results are ordered so lower case versions of same codepoint come after uppercase,
            // and we prefer to emit lower
            // (and binary search for same item with multi results is undefined
            return (index < nameVals.count-1 && codeKeys[index+1] == codepoint) ?
                nameVals[index+1] : nameVals[index]
        }

        private func size() -> Int {
