return nil for a nil object