protected function validateSorts(): void
    {
        $sorts = $this->getArrayValue($this->joryArray, ['srt', 'sorts']);

        // No sorts set, that's ok. return.
        if (! $sorts) {
            return;
        }

        if (! is_array($sorts)) {
            throw new JoryException('The sorts parameter should be an array. (Location: '.$this->address.'sorts)');
        }

        foreach ($sorts as $sort) {
            if (! is_string($sort)) {
                throw new JoryException('A sort item must be a string. (Location: '.$this->address.'sorts)');
            }
        }
    }