hasNextLine check