@Schoonology: There were two reasons to put the condition outside `if` statemet.

Ideological: the name of the new variable describes what is the condition (expression) about. (It is probably not strictly necessary in this case, since the condition is not that complex.)

Practical: the condition does not fit in 80 characters. If I left it in `if`, then I would have to wrap it and the result would be a bit messy - it would be hard to tell where the branch code starts.

Anyway, I'll try to use the approach you outlined in the second comment, it's much cleaner.