if (thresh && typeof thresh === Number && (thresh > 1 || thresh <= 0)) {
            ctx.throw(404, 'Bad threshold for simplify. Must be in range 0-1.');
        } else if (thresh && typeof thresh === Boolean && thresh !== true) {
            ctx.throw(404, 'Bad syntax for simplify. Must be "true".');
        }