svga: add a helper function to check for typeless format