public static function unserialize($object)
    {
        $capsule = self::unserializeNative($object);

        if (true === $capsule->fake) {
            $capsule->object = self::unmask($capsule->object);
        }

        if ($capsule->type == 'SimpleXMLElement') {
            $capsule->object = simplexml_load_string($capsule->object);
        }

        return $capsule->object;
    }