unpacked array in a for loop; safe casting of atom to element with 'is'.