public static function isOnline($host = 'google.com', $force = false) {
		static $hosts = array();

		if ($force || !array_key_exists($host, $hosts)) {
			$hosts[$host] = !in_array(gethostbyname($host), array($host, false));
		}

		return $hosts[$host];
	}