Returns a true value if index is the last in the list.
bool isLastIndex<V>(List<V> list, int index) { return list.length - 1 == index; }