We could move this check in a dedicated method : 
```php
if(!is_array($users) && !$users instanceof Traversable) {
    return array($users);
}
```

And could be used like `foreach ($this->makeTraversable($users) as $user) {`