cope with null attributes from R