Improvement to "cout << none" implementation