Use "test -s" instead of testing file availability and size.