Sorry, in what case would the type("MyArray(1)") not work?
>Beware though. It doesn't ascertain that it's an array, it might be an array. The only way to assure that it's an array is to have something with a function that operates on arrays AFAIK. ie:
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)