private bool DoesDeviceHaveControlInAnActionGroup( QueueControl[] controls, GroupedActionsToBeQueued[] actionGroups) { return controls.Any(control => actionGroups.Any(g => g.ActionToBeQueued.Control.ControlId == control.ControlId)); }