Version: 2019.4
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.