Here is where we should actually check the key/value.  We need to check that current[key] exists and that current[key] == value.  Otherwise this looks great.