array reindex helper

very handy on query results and working with collections.
call for proposal if not sense to you.
that's just simple check for multi-dimensional collection. no fallback required for invalid input IMO to keep things simple.