This `else { if { ...` should just be an `else if`.