I often have to write constructs like: if the key is there, get the value and do something, otherwise put a new value (sometimes with additional processing)Is there any way