check if peer is connected