public function isRobot()
{
if (preg_match('/bot/i', $this->_agent)) {
return true;
}
if (is_null($this->_robotAgentRegexp)) {
$regex = array();
foreach ($this->_robotAgents as $r) {
$regex[] = preg_quote($r, '/');
}
$this->_robotAgentRegexp = '/' . implode('|', $regex) . '/';
}
return (bool) preg_match($this->_robotAgentRegexp, $this->_agent);
}