This is purely a sanity check.
I suppose we can remove it if you feel strongly about it, as i imagine ElementTree will always either return undefined or an Array.
But i also don't see the harm in robust code!