I think you are missing the purpose of this code. This code splits a each query parameter into a name/value pair. A single parameter can never have more than 2 components when split on the = character, its only the name and the value.

Even if this change was correct, you are not using any of the objects on the *parts* array beyond index 1 after this if statement, so this change does nothing in practice.