Indeed, if we are sure never more than one cell can be selected this is redundant.

Also, at the moment I use cell.collapsed, which is used as well by the code that collapses the output of a code cell. Due to my limited knowledge of the code base I have no idea what the most elegant solution would be.