While the loop is useless persay, it can be used for other tasks. Hence it is valid I believe. If the OP never uses it ever, still they learned that it can be used for something, so if nothing else, it was a good learning experience.