Update DocumentManager.php

Traversable, instead of is_array