   # ------------------------------------------------------------
   init_current_note: () =>
     previous_note_guid = localStorageService.get(@SETTINGS_KEY.CURRENT_NOTE_GUID)
-    if previous_note_guid? == false
+    if not previous_note_guid?
       previous_note_guid = "INVALID_GUID"
     p = @find_note_by_guid(previous_note_guid).then (note) =>
       if note?

  # Document ready
  # ------------------------------------------------------------------------------------------------------------------
  $document.ready ->
    # load ace editor
    $window.ace.config.set('basePath', '/javascripts/ace')
    vm.ace_editor = $window.ace.edit("md_editor_div")
    vm.ace_editor.renderer.setShowGutter(false)

    vm.ace_editor.setTheme('ace/theme/tomorrow_night_eighties')
    vm.ace_editor.on 'change', vm.editor_content_changed
    vm.ace_editor.focus()

  # ------------------------------------------------------------------------------------------------------------------
  # ace editor event handlers
