I don't think elements can be nil here, since you checked above.