+1 on that, was gonna say it was checking `:options` and not `:secure_headers_options`

The defined check would only be needed if you ever needed to set @ivar to nil, which is probably not the case here, so an `if @ivar` is fine.