This is a bit confusing taken out of the context but makes sense.

Now I see the comment. Is there a way to make it clearer that that goes with the if conditional? Move it into the associated if block? Insert a newline before the comment?