trying different approach to checking empty error string