Making check.dist an S3 method