Check for iterator instead of instance of Array