Rename editor to maybeEditor to avoid accidental shadowing.