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