this line is assigning isRemoteTarget(target) to the variable targetIsRemote.  I don't believe it's evaluating it here.

I think you still want to keep the evaluation, right?