in reply to What does the short circuit || mean ?
It's called lazy evaluation. You either assign the contentType if it is non-nil else you assign the 'text/plain' mime header.
The second clause checks for a html or text mime-type or else continues the loop with next.