Fixing the behavior of `array.last()` when it's passed an integer that equals or exceeds the array length by returning the array