// Oh PHP, my love, how I hatest thee!
// aka: why can't I have non-scalar keys in foreach?
function insertAll(\Traversable $traversable) {
if ($traversable instanceof \Iterator) {
for ($traversable->rewind(); $traversable->valid();$traversable->next()) {
$this->insert($traversable->key(), $traversable->current());
}
} else {
foreach ($traversable as $key => $value) {
$this->insert($key, $value);
}
}
}