Yes, you are right. This was added by @RaymondLim I believe.

What is trying to do is convert to boolean anything that might be sent as truthly to set a boolean option. It could be fixed by inverting the if to `(typeof value !== "number") ? Boolean(value) : value` or just call `_setEditorOptionAndPref` with a value as `Boolean(value)` when needed.