fix: Prevent an error on empty object not creating $struct