private function findCommand($i, array $matches)
    {
        $match = $matches[0][$i];
        $cmd = isset($matches['function'][$i]) ? $matches['function'][$i] : '';

        return [$match, $cmd];
    }