in reply to Existing items

-e is used for checking to see if a file exists. I suggest using exists in place of -e, as exists is used specifically for checking the existence of elements of hashes or arrays.