Check that there are leave gadgets before indexing