Oh, my last example actually removes the element from the list, so you don't need to check for empty array items later on. ;) Nick Reinking