Verify if end of list has been reached