> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# isValidDevice

> Checks whether a device is still available and usable.

```ts
isValidDevice(deviceInfo): Promise<boolean>
```

Checks whether a device is still available and usable.

## **Parameters**

The device to validate, or `null`. See [`MediaDeviceInfo`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo).

## **Returns**

`Promise<boolean>`

`true` if the device is valid and available. Returns `false` for `null`, audio output devices, or unavailable devices.

## **Examples**

```ts
await client.isValidDevice(deviceInfo);
```