protected function validateOnCondition($activeQuery)
    {
        if (
            !ArrayHelper::isAssociative($activeQuery->on) &&
            !empty($activeQuery->on)
        ) {
            return false;
        }

        if (
            $activeQuery->multiple &&
            !empty($activeQuery->via) &&
            is_array($activeQuery->via) &&
            is_object($activeQuery->via[1]) &&
            !ArrayHelper::isAssociative($activeQuery->via[1]->on) &&
            !empty($activeQuery->via[1]->on)
        ) {
            return false;
        }

        return true;
    }