Guard against malformed data