Returns the last element of an array or null if the array is empty or not an array.
The array from which to retrieve the last element.
Returns the last element of an array or null if the array is empty or not an array.