How about ``is_array($node)`` here?