if the id option is not passed, then we should not add an id empty attribute.