add($element); } is_int($index) ? array_splice($this->array, $index, 0, [$element]) : $this->array[$index] = $element; return $this; } }