Check `peer_state` existence more idiomatically