Short-circuit expand/collapse, activate/deactivate if already set