what if `lang` is empty or invalid/