public final function checkURL($URL, $type) { // absolute URL with scheme? check scheme! return empty($this->urlSchemeFilters[$type]) || !preg_match('#\\s*[a-z][a-z0-9+.-]{0,20}:#Ai', $URL) || preg_match($this->urlSchemeFilters[$type], $URL); }