Another way to check would be to run:
and then check if the configured value matches the running value, right? If you ran RECONFIGURE, they should match unless a restart is required for that change.
NOTE - I did not test this, but it makes sense to me.
The above is all just my opinion on what you should do.
As with all advice you find on a random internet forum - you shouldn't blindly follow it. Always test on a test server to see if there is negative side effects before making changes to live!
I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.