Ver originalif(!is_array($array) || !$array instanceof \Traversable ){ throw new \RuntimeException(/***/);}