Guard against undefined