public function set($key, $value)
{
// Allow non-associative array for collections
if ($key === '') {
$this->data[] = $value;
} else {
$this->data[$key] = $value;
}
return $this;
}