First my apologies
I had amended the test data to check something and forgot about it!
I inserted 2 null elements and they are returned as anagrams in the 466 code and following.
Also the test for an empty array uses Redim $InputArray[0]
If this used Redim $InputArray[5] (as I presumed in original coding)
it would fail in the 466 code and following

Your second interpretation of my 'more than 10 anagrams' was the one meant.
Namely an output line with more than 9 words on it will begin with a space character