 
     // Translatation of engine.io-parser#decodePayload
     private func parsePollingMessage(str:String) {
-        if str.characters.count == 1 {
-            return
-        }
-
+        guard str.characters.count == 1 else {
+            return
+        }
         // println(str)
 
         let strArray = Array(str.characters)

        if let pType = PacketType(rawValue: type) {
            var arr = [NSData]()

            if data != nil {
                for d in data! {
                    arr.append(d as! NSData)
                }
            }

            reqPolling.allHTTPHeaderFields = headers
        }
 
        if let extraHeaders = extraHeaders {
            for (headerName, value) in extraHeaders {
                reqPolling.setValue(value, forHTTPHeaderField: headerName)
            }
        }
