 
         # If the list is empty, we need to show the form
         @taskList.tasks.on 'remove', (collection) =>
-            @toggleTaskForm false, true if @taskList.tasks.length == 0
+            @toggleTaskForm false, true if @taskList.tasks.length is 0
 
         # whether the user has written something or not in the new task form
         @hasUserTyped = false


    # "new task" Button behaviour management
    newTaskButtonHandler: () ->
        if !@hasUserTyped || !@newTaskFormInput.val()
            @newTaskFormButton.addClass 'disabled'
            @newTaskFormButton.html 'new'
            @newTaskFormButton.unbind 'click'


        $(document).keyup (event) =>
            keyCode = event.which | event.keyCode
            if keyCode is 84 && event.altKey # alt + t
                @toggleTaskForm(true)

        @toggleButton.click (event) =>
