Allow empty files to be added as files

By checking data.length, empty files (length === 0) are treated as directories and added to the zip file incorrectly.

Modify the check to explicitly screen out directories (i.e. entries where isFile is explicitly set to false).