Minor style comment: we always put a space between `if` or `for` and the opening `(`. We also usually put spaces around the condition, but this is less universally respected.