array reindex helper

very handy on query results and working with collections.
call for proposal if not sense to you.
```php
elseif (is_object($value))
```
instead ?