ensure key exists while allowing zeros