Update to check if after is defined on registered vars.