     }
     
     fileprivate func displaySuggestions(_ query: String, suggestions: [String]) {
-        guard currentQuery == query else {
-            return
-        }
         currentSuggestions = suggestions
+        
+        guard currentQuery == query && suggestions.count > 0 && OrientationUtil.isPortrait() else {
+            return
+        }
+        self.isHidden = false
         
         var index = 0
         var x: CGFloat = margin


        clearSuggestions()
        if OrientationUtil.isPortrait() {
            self.isHidden = false
            self.displaySuggestions(currentQuery, suggestions: currentSuggestions)
        } else {
            self.isHidden = true
        }
        
    }

        }
        
        clearSuggestions()
        displaySuggestions(query, suggestions: suggestions)
        
    }
    
    //MARK:- Helper methods
    fileprivate func clearSuggestions() {
        let subViews = scrollView.subviews
        for subView in subViews {
            subView.removeFromSuperview()
