   ###
   _contentWillChange: Ember.beforeObserver ->
     content = get(@, 'content')
-    len = get(@, 'content.length') || 0
+    len = if content then get(content, 'length') else 0
 
     @contentArrayWillChange @, 0, len, undefined
     @contentWillChange @

  ###
  didInsertElement: ->
    @_super()
    set(@, '_cursor', get(@, 'content.length') || 0)
    @_updateChildViews() if get(@, 'content') isnt undefined

  ###
    Respond to a click event on the view element. The tags input will try to

  refocus: (force, beginning) ->
    inputView = get(@, 'inputView')

    return unless force or @isFocused()

    if get(inputView, 'state') is 'inDOM'
      @focus({}, beginning)
