Only iterate over collections if they exist! (ROOT-6311, ROOT-6307)