I hardly assumed that key is string, but extra check could be nice.