make sure we're iterating over an array, and node a nodeList (fixes weird cornercases)