This should be !$overrideUrl -and ($verify.Status -ne "Valid")