Are you sure the `Seq` will never be empty?
Because calling `head` might throw an exception in this case.