You could use this condition for a particular market:
Trigger Expression market_mbnum + market_mlnum is greater than 0
This checks if there are any matched bets in the market where you check this condition.
If you want to find out if there is any matched bet in all the markets, that's a harder task. But if you tell me why exactly you need to know that, I might find a different workaround.