protected function checkResponseContains($html, $phrase) { if (!$phrase) { return true; } $this->responseContainsPhrase = str_contains($html, $phrase); return $this->responseContainsPhrase; }