         Accent.sharedInstance.getArticleThumbnail(article) { (image) in
             self.imageView.image = image
         }
+    }
+    
+    override func viewWillDisappear(animated: Bool) {
+        super.viewWillDisappear(animated)
         
-        if Quizlet.sharedInstance.setId == 0 {
-            guard let language = Language.savedLanguage() else {
+        if Quizlet.sharedInstance.setId == 0 && terms.count > 2 {
+            guard let _ = Language.savedLanguage() else {
                 return
             }
             
-            var terms = [String: String]()
             Quizlet.sharedInstance.createSet(terms, completion: { (url) in })
         }
     }

    private var translateView: UIView!
    private var translateLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        

                    self.translateLabel.text = translation
                })
                
                if Quizlet.sharedInstance.setId > 0 {
                    Quizlet.sharedInstance.addTermToSet(text, translation: translation)
                } else {
                    self.terms[text] = translation
                }
            }
        }
        
