hasErrorsState

return true if the element has errors, not warnings