   # ------------------------------------------------------------
   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?

              @note_load_finished(true, note.guid, null)
              console.log('loading note ' + note.guid + ' finished')
              # updating note list
              @get_all_notes().then(
                (notes) =>
                  console.log('updating note lists')
                  @_set_note_list(notes)
                (error) =>
                  notifier.error('get_all_notes() failed in load_note(): ' + error)
              )
            (error) =>
              notifier.error('load note ' + guid + ' failed: ' + JSON.stringify(error))
              @note_load_finished(false, guid, new Error('load note ' + guid + ' failed: ' + JSON.stringify(error)))

    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
