private function isTraversable($items)
{
if (is_array($items)) {
return;
}
if ($items instanceof \Traversable) {
return;
}
throw new \InvalidArgumentException(sprintf('Argument passed to collection %s needs to be an array or traversable object', get_class($this)));
}