Add check for 0-size files