throw TypeError when about to iterate null/undef
repackage