public function clear($key = null)
{
// key given?
if ($key !== null) {
// remove specific key
unset($this->items[(int) $key]);
// resort, to avoid shit when parsing
$this->items = \SpoonFilter::arraySortKeys($this->items);
} else {
// clear all
$this->items = array();
}
}