You can interact with Firestore and write you own queries and command directly in Custom Action without adding any dependencies. Here's a code example of a Count() query with filters that returns a bool = true if the query returns more than 0 results. Hope it helps!
Line 20: final collection = db.collection('points');