Replace safe bool idiom with explicit operator bool