protected function setBrowser(): bool
	{
		if (is_array($this->config->browsers) && $this->config->browsers)
		{
			foreach ($this->config->browsers as $key => $val)
			{
				if (preg_match('|' . $key . '.*?([0-9\.]+)|i', $this->agent, $match))
				{
					$this->isBrowser = true;
					$this->version   = $match[1];
					$this->browser   = $val;
					$this->setMobile();

					return true;
				}
			}
		}

		return false;
	}
protected function setBrowser(): bool
	{
		if (is_array($this->config->browsers) && $this->config->browsers)
		{
			foreach ($this->config->browsers as $key => $val)
			{
				if (preg_match('|' . $key . '.*?([0-9\.]+)|i', $this->agent, $match))
				{
					$this->isBrowser = true;
					$this->version   = $match[1];
					$this->browser   = $val;
					$this->setMobile();

					return true;
				}
			}
		}

		return false;
	}
protected function setBrowser ( ) : bool { if ( is_array ( $ this -> config -> browsers ) && $ this -> config -> browsers ) { foreach ( $ this -> config -> browsers as $ key => $ val ) { if ( preg_match ( '|' . $ key . '.*?([0-9\.]+)|i' , $ this -> agent , $ match ) ) { $ this -> isBrowser = true ; $ this -> version = $ match [ 1 ] ; $ this -> browser = $ val ; $ this -> setMobile ( ) ; return true ; } } } return false ; }
Set the Browser

@return boolean
Set the Browser