ensure_fields(): Properly document
ensure_fields(): Return NULL on invalid input