Very confusing logic!
Can we have the positive match first?
if series == "Event" and "newsfeed" not in current.request.args:

Although personally I prefer a separate render controller as this is more robust & performant