Should probably also do an array_key_exists($field, $value) to be safe.  It would also make it easier for clients that just want to set one value of the data.