Scala's require would be better :-)

http://www.scala-lang.org/api/current/index.html#scala.Predef$

i.e.

    require(kv._2 != null, "Cookie values cannot be null")