Safe list traversal