check existence of error variables