Replace obsolete safe bool idiom with explicit operator bool