refiend hasError method