public function pingBefore($url) { return $this->before(function () use($url) { (new HttpClient())->get($url); }); }