move isNull to a free function
retiring RObjectMethods