     changeContainerVisibility: ->
       notModalMessages = _.filter @messagesArray, (message) =>
         message.usingModal is false
-      hasMessages = _.find notModalMessages, (message) =>
-        message.visible is true
-      if !hasMessages
+      if !notModalMessages
         $(vtex.Messages.getInstance().placeholder).hide();
 
     ###

    if !@usingModal
      @domElement.hide()

    @visible = false
    vtex.Messages.getInstance().changeContainerVisibility()

###

      flagVisibleSet = false
      for modal in $('.modal.' + @classes.MESSAGEINSTANCE)
        modalData = $(modal).data('vtex-message')
        if modalData.domElement isnt @domElement[0]
          flagVisibleSet = true
          $(modal).one 'hidden', =>
            $(@domElement).modal('show')

      if not flagVisibleSet
        $(@domElement).modal('show')

    if !@usingModal
      @domElement.show()

      # cria timer da mensagem
      if @.timeout? and @.timeout isnt 0
