When I paste that in a browser I get a “Unknown Variable: false” error
Using the Particle Console the function work just fine.
Not sure what the issue could be.
If it’s just in the browser that’s an HTTPS GET request and to call functions I believe they need to be HTTP POST which is why using curl to test functions is the recommendation.