I recently had to check for the last item in a range and was expecting some kind of convenience function or something but there isn’t one yet.
I then found this thread about it. The solutions posted there work great but it is still weird to read in my opinion and I think having such convenience functions to access the first or last item in an array will help a lot and isn’t totally uncommon.