I don't think you want to do this except where onlyCheckLanguage is false?

You probably want this moved down to the block below?