I swiped that code from elsewhere, but you are right, opts.get would be a little "safer".