Replaced a chunk of code with a __::chain(). Created a mixin called setIfNotExist for setting a value for a key, if it does not already exist.