title: Table is empty when search bar is empty or nil
body: <p>When I search for a shop the table gets the right shop. but when I edit my search words ( delete one letter for example ) the table becomes empty. Even when I delete the search words the table becomes empty! I have to go to a different View Controller and come back to the search bar to see the full table. </p>
  
  <p>This is my code </p>
  
  <pre><code>func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
  
      shops = shops.filter { $0.shopname.range(of: searchText, options: .caseInsensitive, range: nil, locale: nil) != nil}
  
  
      tableView.reloadData()
  
  }
  </code></pre>
  
  <p>Where should I implement <code>if searchBar.text == "" || searchBar.text ==nill</code> return the original table cells. or when search again I want it to perform another search. </p>
  
  <p><strong>UPDATE</strong> 
  <a href="https://i.stack.imgur.com/0Gm0E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Gm0E.png" alt="enter image description here"></a></p>
  
  <p>my shops array isn't a string type it's a class type that has strings within it. because it's a custom cell with JSON data from api </p>
  
  <pre><code> var shops: [Shops]!
  var isSearch = false
  var auxiliar : [String] = []
  var searchActive: Bool = false
  
  
  
  class Shops {
  private var _familiy_id: String?
  private var _logo : String?
  
  private var _shopname : String?
  
  var familiy_id : String{
      return _familiy_id!
  }
  
     var shopname : String{
      return _shopname!
  }
  var Logo : String{
      return _logo!
  }
  init(shopname : String , Logo : String , family_id : String) {
  
      self._shopname = shopname
             self._logo = Logo
      self._familiy_id = family_id
  }
  </code></pre>
  
  <p>}</p>