Conditional GET middleware for koa