fix 0 being treated as empty string, fixes #76