guard against undefined pdData