private function splitKeyValuePair(string $pair): array
    {
        $option = explode('=', $pair);
        if (count($option) !== 2) {
            throw new InvalidArgumentException(
                sprintf('"%s" is not a valid query or parameter.', $pair)
            );
        }

        return $option;
    }