isn't this load order dependent at the moment, it's implied that the ApiListener is loaded first :)

I would opt for moving the check to beforeRender and just let it bind to the request in peace :)