Shouldn't this be ```if sampleOrSampleUri <> "" && (runtimeVersion.SupportsLocalFileSystem || not sampleIsUri || sampleIsWebUri) && not (hasAuthorizationPart sampleOrSampleUri) then```?