Can't this just be 

`if !kc.trustHost(remoteAddr... {`