foo is None
not foo
Explicitly compare to None when checking the triple's components so we don't bail out when one of them is the empty string.