Could you move this comment to just before the function, and give context to the condition--"This handler is only invoked when..." or similar