public function filter(callable $callback = null) { if ($callback) { return new static(array_filter($this->items, $callback)); } return new static(array_filter($this->items)); }