protected function isSelfExtend($target, $origin)
    {
        foreach ($origin as $sel) {
            if (in_array($target, $sel)) {
                return true;
            }
        }

        return false;
    }
protected function isSelfExtend($target, $origin)
    {
        foreach ($origin as $sel) {
            if (in_array($target, $sel)) {
                return true;
            }
        }

        return false;
    }
protected function isSelfExtend ( $ target , $ origin ) { foreach ( $ origin as $ sel ) { if ( in_array ( $ target , $ sel ) ) { return true ; } } return false ; }
Is self extend?

@param array $target
@param array $origin

@return boolean
Is self extend?