Add isConnectedTo method. Fix #16