Implements unsetting of collections
A little refactoring