Comparing a while loop against a foreach loop of an array | Hacker News Reader