Duplicate key check.