If attribs are empty, ignore them