patch to connect live.remote~ object only when needed

wackazong's icon

I have a patch that uses a live.remote~ object to control a parameter. I would like to connect it to the parameter only when there are values coming in through the path. What is a reliable way to do it? I have someting like this set up, but this does not always work, especially if there are a lot of values coming in through the patch:

Max Patch
Copy patch and select New From Clipboard in Max.