protected static function is_device($device)
    {
        $ua = $_SERVER['HTTP_USER_AGENT'];
        return (bool)preg_match("/" . self::$devices[$device] . "/i", $ua);
    }
protected static function is_device($device)
    {
        $ua = $_SERVER['HTTP_USER_AGENT'];
        return (bool)preg_match("/" . self::$devices[$device] . "/i", $ua);
    }
protected static function is_device ( $ device ) { $ ua = $ _SERVER [ 'HTTP_USER_AGENT' ] ; return ( bool ) preg_match ( "/" . self :: $ devices [ $ device ] . "/i" , $ ua ) ; }
Check if navigateur is a current devise

@example

Detect::is_device('android');

@param $device
@return bool
Check if navigateur is a current devise