We added a check while object destruction