Check if lang is defined.