I’m not sure which way is better nor I can’t think about it now so much, but to understand how it works maybe this can help you:
Most of simple looking functions, macros etc in engines are checking loops like this for example. Switch checking every item in array. You can check - here is difference in loop length 0 == index is faster than index == 0 - I’m not sure. This screen is not “exploded” unreal engine macro, just my visualization how I think it works, based on my experience with other macros or engine functions.