Update HDTools.php

My little helper for Yii =)