title: How to check if end of list was reached?
body: <p>If have a list, say <code>a=[1,2,3]</code>, and I want to see <code>if a[4] is null</code>, is there a way to do that, without using an exception or assertion?</p>