This sidepanel change seems to be incorrect.
I suppose you were going to add an additional <code>else</code> clause