Checking for a connection associated to a gives node_id