public function checkScheme($url = '', $secure = false)
	{
		$parsed = [];
		$parsed = parse_url($url);
		$pos = strpos($url, '//');

		// Perhaps this is a schema less url? parse_url should detect schema less urls .___.
		if (empty($parsed['scheme']) && strpos($url, '//') !== false)
			return $url;

		elseif (empty($parsed['scheme']))
			return 'http'. ($secure ? 's' : '') .'://'. $url;

		else
			return $url;
	}