I'm don't think your isNumericalArray() function does what you want. It looks like you're just checking the first char of each key.
So keys like
0ThisIsZero
1001Nights
would return true.
A better filter might be
Code: Select all
filter pArray with "*[A-Za-z]*"
(Edited for typo)