change check() to checkSchema()