- Detect end of list correctly