public function test($line) { $matches = $this->match($line); return isset($matches['userAgentString']); }