plack app script, simple rewrite checking whether an event exists or not