Make sure a callback is provided when asking for keys or values