Changed 'remove nils from an array'