only iterate over entries if there are any