Be more resilient about unused values in array