Its not meant to be empty. I added the usage of stdlib to validate that its an array in the new code. Thanx for pointing this out.