* Fix if is_sub_class
* Refactor because of https://bugs.php.net/bug.php?id=61384