       parentRange = $('trix-editor').offset()
       domRange = @editor.getClientRectAtPosition(@editor.getPosition() - 1)
 
-      return unless domRange?
-
       topVal = domRange.top + domRange.height
       leftVal = domRange.left + domRange.width
 
       @dropDown.css({top: topVal, left: leftVal, position: 'fixed', 'z-index':100})
 
    populateDropDown: (results)=>
-      return unless results?
-      return unless @autoCompleteOn
+      return unless results? && results.length && @autoCompleteOn
       @numDropDownItems = 0
 
       @dropDownContainer.empty()


      @positionDropDown()

      @addDropDown result for result in results
      @dropDownContainer.show()

      @numDropDownItems = results.length
      @initEventListeners()

   addDropDown: (result)->
      if result[0] == '<'
         result = result.slice(1, -1)

      html = @currentStrategy.template(result)

      container = $('<li/>')

            $(this).removeClass('active')
         )

      dropDownItemJQ.on 'mousedown', () ->
         self.insertAutoCompleteItem($(this))

      dropDownItemJQ.on 'keydown', (event) ->
         currentDataIndex = parseInt($(this).attr('data-index'))
         nextDataIndex = 0
         #jquerySelector = dropDownItemSelector + "[data-index='" + nextDataIndex + "']"

         if event.keyCode == 38
            if currentDataIndex == 0
               nextDataIndex = self.numDropDownItems - 1
            else
               nextDataIndex = currentDataIndex - 1

            jquerySelector = dropDownItemSelector + "[data-index='" + nextDataIndex + "']"
            $(this).blur()
            $(jquerySelector).focus()
            event.preventDefault()
