function hasErrors() {
      var _this = this;
      var answer = false;

      angular.forEach(_this.errors, function(error) {