Ah, but the way you have it introduces a bug. It will connect the handler again even when not needed, potentially leading to multiple duplicated handlers.