has method

bool has(
  1. PeerId peerId
)

Check if peer has cached presence

Implementation

bool has(PeerId peerId) {
  return get(peerId) != null;
}