Why not `if (currentSettings.editor === undefined)`?