         }
 
         RCHSDK.defaultClient().sendRequest(searchBuilder.build(), success: { (responseObject) in
-            
-            guard let searchResult = responseObject as? RCHSearchResult else {
-                return
-            }
-            
+            guard let searchResult = responseObject as? RCHSearchResult else { return }
+            // If the search term has been emptied, ignore this response since there will not be another request to update it.
+            guard !self.searchTerm.isEmpty else { return }
+
             self.products = searchResult.products!
             self.searchFacets = searchResult.facets!
             

        view.endEditing(true)
        autocompleteSuggestions.removeAll()
        sortButton.setTitle("Sort", for: .normal)
        if products.isEmpty {
            sortFilterView.isHidden = true
            searchProductsLabel.text = "Search Products"
            searchProductsImageView.image = UIImage(named: "img-search.pdf")
            searchProductsView.isHidden = false
        } else {
            sortFilterView.isHidden = false
        }
    }
    
    // MARK: API

        }
        self.present(alertController, animated: true, completion: nil)
    }

    @IBAction func sortSelected(_ sender: AnyObject) {
        pickerView.isHidden = false
    }

    @IBAction func sortPickerDoneSelected(_ sender: AnyObject) {
        currentSort = SortingOptions.allValues[sortPicker.selectedRow(inComponent: 0)]
        searchForProducts()
