Added check for lg array element in the request data.