Fixed scenario when collection array is empty