# tmux_select:exists/2

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_select.erl#L285
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_select-exists-2/

```
exists(Criteria, Selection)
-spec exists(criteria(), t()) -> boolean().
```

Validate all criteria/coverage first, then stop at the first local match. Performs no I/O; an empty selection does not bypass validation.

## Parameters

- `Criteria` (`criteria()`)
- `Selection` (`t()`)
