Maybe you should add a check ``if $diff == 0 return``