replaced isLocalURL by isValidURI