(bug-fix:minor) When writing output dat file, check for the presence of any observation