Avoid double assigment to $viewName variable.