Could you comment on what this change is for? Especially why this is only part of the first if and not the else if.