protected function convertScopesToCriteriaArray()
    {
        $scopes = [];

        foreach ($this->scopes as $scope) {

            if (array_key_exists($scope, $this->scopeParameters) && ! empty($this->scopeParameters[ $scope ])) {

                $scopes[] = [ $scope, $this->scopeParameters[ $scope ] ];
                continue;
            }

            $scopes[] = [ $scope, [] ];
        }

        return $scopes;
    }