Yes, exactly. That would be more idiomatic and should fail with a message close to the original problem.