title: Swift Firebase UISearchController Index Out Of Range
body: <p>I have a tableview that lists all of my "places" from firebase. I have a UISearchController to obviously search through these "places". The problem is when I just tap on the UISearchController but don't type anything and select a "place" I get a index out of range error. If I am typing or do not activated the UISearchController, it segues fine. Just when it is active and don't type is when I get the error. It throws the error on "let user = filteredUsers[indexPath.row]"</p>
  
  <pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      super.prepare(for: segue, sender: sender)
      if segue.identifier == "BusinessProfiles" {
          // gotta check if we're currently searching
          if self.searchController.isActive  {
              if let indexPath = tableView.indexPathForSelectedRow {
                  let user = filteredUsers[indexPath.row]
                  let controller = segue.destination as? BusinessProfilesViewController
                  controller?.otherUser = user
              }
          } else {
              if let indexPath = tableView.indexPathForSelectedRow {
                  let user = usersArray[indexPath.row]
                  let controller = segue.destination as? BusinessProfilesViewController
                  controller?.otherUser = user
              }
          }
      }
  }
  </code></pre>