Hm, wouldn’t it be easier to simply check for the portal’s guid? Or is this required to handle update issues?