Check if the key is unique before giving it the value