core/config: Add has_field() API function