`if (checkMissingParams(res, {endX: endX, endY: endY})) {`