We should check if the object is undefined.