x == NULL returns logical(0) instead of FALSE or TRUE as you might expect and I cannot find the right way to write this test in R. Thanks in advance for any hint, -- O.L.