public static function isUrl($url, bool $schemeRequired = true) {
		try {
			$url = Url::create($url)->toIdnaAsciiString();
		} catch (\InvalidArgumentException $e) {
			return false;
		}
		
		if ($schemeRequired) {
			if (false !== filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)) {
				return true;
			}
		} else {
			if (false !== filter_var($url, FILTER_VALIDATE_URL)) {
				return true;
			}
		}
		
		return false;
	}
public static function isUrl($url, bool $schemeRequired = true) {
		try {
			$url = Url::create($url)->toIdnaAsciiString();
		} catch (\InvalidArgumentException $e) {
			return false;
		}
		
		if ($schemeRequired) {
			if (false !== filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)) {
				return true;
			}
		} else {
			if (false !== filter_var($url, FILTER_VALIDATE_URL)) {
				return true;
			}
		}
		
		return false;
	}
public static function isUrl ( $ url , bool $ schemeRequired = true ) { try { $ url = Url :: create ( $ url ) -> toIdnaAsciiString ( ) ; } catch ( \ InvalidArgumentException $ e ) { return false ; } if ( $ schemeRequired ) { if ( false !== filter_var ( $ url , FILTER_VALIDATE_URL , FILTER_FLAG_SCHEME_REQUIRED ) ) { return true ; } } else { if ( false !== filter_var ( $ url , FILTER_VALIDATE_URL ) ) { return true ; } } return false ; }
checks a string, if it is a valid url address

@param string $url
@return bool
checks a string if it is a valid url address