Wouldn't it make more sense for the `for` loop to be inside this conditional block?