handle case when object is None.