This if (lines 114--123 as I write this) can be folded into the previous one (109--112).