why not just using [``class_parents``](http://php.net/manual/en/function.class-parents.php) ?