domain:has_any_panes()

Since: nightly builds only

Returns true if the mux has any panes that belong to this domain.

This can be useful when deciding whether to spawn additional panes after attaching to a domain.