Check why this line changed, because the `hasNext()` validates the same situation.