Check for EOF in peek()