penultimateOrNull

Returns the element before the last one, or null if the list has fewer than two elements.