Check if object is disposed.