guard against cases when the value of the attribute is None.