The only approach I could find of is to filter for specific string in the output result. If the file is not a .zip compliant file, I may get something like this:
"End-of-central-directory signature not found."
So, if the output includes this, I know it failed. There could be various variations of such message. For now, I will add them up as I find them. If someone has a better idea, let me know.