update condition for !array_key_exists