nil tests for non-primitive datatypes