The processOptions function don't generate another object, it just returns the options value with the property assigned.

But you are, right, this can be done inside the conditional. =D