private function isExceptionFromBot()
    {
        $ignored_bots = $this->config->get('sneaker.ignored_bots');

        $agent = array_key_exists('HTTP_USER_AGENT', $_SERVER)
                    ? strtolower($_SERVER['HTTP_USER_AGENT'])
                    : null;

        if (is_null($agent)) {
            return false;
        }

        foreach ($ignored_bots as $bot) {
            if ((strpos($agent, $bot) !== false)) {
                return true;
            }
        }

        return false;
    }
private function isExceptionFromBot()
    {
        $ignored_bots = $this->config->get('sneaker.ignored_bots');

        $agent = array_key_exists('HTTP_USER_AGENT', $_SERVER)
                    ? strtolower($_SERVER['HTTP_USER_AGENT'])
                    : null;

        if (is_null($agent)) {
            return false;
        }

        foreach ($ignored_bots as $bot) {
            if ((strpos($agent, $bot) !== false)) {
                return true;
            }
        }

        return false;
    }
private function isExceptionFromBot ( ) { $ ignored_bots = $ this -> config -> get ( 'sneaker.ignored_bots' ) ; $ agent = array_key_exists ( 'HTTP_USER_AGENT' , $ _SERVER ) ? strtolower ( $ _SERVER [ 'HTTP_USER_AGENT' ] ) : null ; if ( is_null ( $ agent ) ) { return false ; } foreach ( $ ignored_bots as $ bot ) { if ( ( strpos ( $ agent , $ bot ) !== false ) ) { return true ; } } return false ; }
Determine if the exception is from the bot.

@return boolean
Determine if the exception is from the bot .