public function all(callable $function = null) { foreach ($this->mapIterator($function) as $value) { if (!$value) { return false; } } return true; }