return error condition when nil