Check if a Photo has an image before trying to delete the image