I'm assuming this is in the event that there is no lang in the URL? If so, implement the change for the above check and just change this to an else.