avoid empty values in resource