Generalised select-sheet to find the first sheet which either returns true for an arbitrary predicate or whose name matches a string or regex