instanceof instead of typeof

(we need to know if it is iteratable object)