... etc. All of these extra indents on the last part of the if clause look wrong to me.