Check object is iterable