added basically null check to Object#__set