public virtual bool ShouldSerializePeripherals() { return Peripherals != null && Peripherals.Count > 0; }