         }
         
         if self.cancelInfo != nil && buttonIndex == alertView.cancelButtonIndex {
-            if let _handler = self.cancelInfo!.completion {
-                _handler(resultObject: result)
-            }
+            self.cancelInfo!.completion?(resultObject: result)
         } else {
             var resultIndex = buttonIndex
             if self.textFieldInfo.count > 0 || self.cancelInfo != nil {

            
            if self.otherButtonHandlers.count > resultIndex {
                let alertInfo = self.otherButtonHandlers[resultIndex]
                if let _handler = alertInfo.completion {
                    _handler(resultObject: result)
                }
            }
        }
        

        for alertInfo in self.otherButtonHandlers {
            var handler = alertInfo.completion
            let action = UIAlertAction(title: alertInfo.title, style: .Default, handler: { (action) -> Void in
                if alertController.textFields?.count > 0 {
                    handler?(resultObject: alertController.textFields)
                } else {
                    handler?(resultObject: action)
                }
                SwAlert.dismiss()
            })
