Hide DIV if no image displayed

Hi,

I am using a slider in a page to display uploaded images. What I would like to do is hide the <div> if there is no image uploaded. Is there a command in PHP I could use to hide this div?