     }()
     
     var searchLanguageBarViewController: SearchLanguagesBarViewController?
-    var isSearchVisible: Bool = false
     
     func setSearchVisible(_ visible: Bool, animated: Bool) {
-        isSearchVisible = visible
         let completion = { (finished: Bool) in
             self.resultsViewController.view.isHidden = !visible
             self.isAnimatingSearchBarState = false

            addChildViewController(searchLanguageBarViewController)
            searchLanguageBarViewController.view.translatesAutoresizingMaskIntoConstraints = false
            navigationBar.addExtendedNavigationBarView(searchLanguageBarViewController.view)
            searchLanguageBarViewController.view.alpha = isSearchVisible ? 1 : 0
            searchLanguageBarViewController.didMove(toParentViewController: self)
            searchLanguageBarViewController.view.isHidden = false
        } else if !showLanguageBar && searchLanguageBarViewController != nil {

            self.navigationBar.isBarHidingEnabled = false
            self.resultsViewController.view.alpha = visible ? 1 : 0
            self.searchBar.setShowsCancelButton(visible, animated: animated)
        }
        guard animated else {
            animations()
