guard against sending a blank documents array