Return the last element in an array.