Because I don't think it's used anywhere. I can't see $itemElement being used anywhere. And $temp is overriden before it's used on line 83 (of updated file)