Check whether the compressed file is bigger than original or is empty

You're right!  haha... So embarrassing.
As you say, I find there will be some error messages in compressed file, when an accident happens.
I will try another way to check.