Better way to handle grabbing n elements from an array while respecting the array boundaries

@QuinceyMorris Thank you so much! This works like a charm and the code is so much shorter. Now I just need to internalize that this is an option. :rofl: