protected function loadFromQueryParam()
    {
        if ( ! $this->queryParamField) {
            return false;
        }

        if (Yii::$app->state < WebApplication::STATE_HANDLING_REQUEST) {
            Yii::$app->request->resolve();
        }

        if (($language = Yii::$app->request->get($this->queryParamField, false))) {
            return $language;
        }

        return false;
    }