@Ayoubas01 wrote:
thanks to you also for the time spent, this little trick saved me

It probably belongs inside the case, because it is irrelevant if not used later.
You might also think about deRube-ify the array operations
(this is the same result!):
