Fix the collapse method. It know removes the open item from then openItems set. Also add a boolean return.