avoid empty metadata attribute
check if attribute is empty