     }
 
     private func friendAtIndex(index: Int) -> User? {
-        //let friend = searchControllerIsActive ? filteredFriends?[safe: index] : friends[safe: index]
+
         let friend = filteredFriends?[safe: index]
         return friend
     }


        switch section {
        case .Local:
            //return searchControllerIsActive ? (filteredFriends?.count ?? 0) : friends.count
            return numberOfRowsWithCountOfItems(countOfFilteredFriends)
        case .Online:
            //return searchControllerIsActive ? searchedUsers.count : 0
            return numberOfRowsWithCountOfItems(countOfSearchedUsers)
        }
    }


    private var keyword: String?

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "Search Contacts"

