You'd have to keep track of whether or not there were any images found (e.g., by setting a flag $foundPics = true when you find one), and then you could print a message if none were.


Meaning,...