Do something on an empty watch folder?

I have Hazel set up to monitor a folder for movies and when it finds one, to call an applescript then remove the file.
My issue is that my Applescript opens iTunes. I would iTunes to quit after everything is done. I don't want to put the 'itunes quit' in the Applescript as there may be more than one movie in the folder and I don't want to open and close iTunes multiple times.
Ideally Hazel would act on all the files in the folder at once and pass the whole list to my Applescript, but it appears it doesn't work that way.
So, is there any way to get iTunes to close only if it is open and only if the watch folder is empty?
Thanks
My issue is that my Applescript opens iTunes. I would iTunes to quit after everything is done. I don't want to put the 'itunes quit' in the Applescript as there may be more than one movie in the folder and I don't want to open and close iTunes multiple times.
Ideally Hazel would act on all the files in the folder at once and pass the whole list to my Applescript, but it appears it doesn't work that way.
So, is there any way to get iTunes to close only if it is open and only if the watch folder is empty?
Thanks