setHasError() {
        let property = this.property;
        let errors = this.errors;
        let hasValidated = this.hasValidated;

        // if we aren't looking at a specific property we always want an error class
        if (!property && errors && !errors.get('isEmpty')) {
            this.set('hasError', true);
            return;
        }

        // If we haven't yet validated this field, there is no validation class needed
        if (!hasValidated || !hasValidated.includes(property)) {
            this.set('hasError', false);
            return;
        }

        if (errors && !isEmpty(errors.errorsFor(property))) {
            this.set('hasError', true);
            return;
        }

        this.set('hasError', false);
    }
Adds `success` or `error` classes to the element based on the passed
in `DS.Errors` object, the `property` to inspect, and an array of
validated property names in `hasValidated`