Why not just return this as an error instead of a panic?