I'm not sure I understand the logic here at all, at a minimum it needs an explanatory comment.