fix(server): un-nest arg checking

simplify the nesting in AddPeer