composer require alto/array-functionsReturns the first element of an array or null if the array is empty.
array_first(array $array): mixedReturns the last element of an array or null if the array is empty.
array_last(array $array): mixedThis package is licensed under the MIT License. See the LICENSE file for more information.