Check if user setting pair exists before inserting/updating it.