Don't consume iterator twice