This version of Unity is unsupported.

InputDevice.isValid

public bool isValid;

Description

Read Only. True if the device is currently a valid input device; otherwise false.

Use this property to determine whether this device is still valid.