don't crash if there are no documents