Check if we are EOF before advancing