addDeviceIfNotPresent

Adds a device to the list if it's not already present.

Return

true if the device was added, false if it was already in the list.

Parameters

device

The device to add.