R helper: Returns the last element of a list
.lastItem(collection)
collection
The list
The last element of the list