This check is not necessary here, it's handled by executeInContext.