private function lookBehind(array $charArray, int $currPosition)
    {
        if ($currPosition === 0 || count($charArray) === 0) {
            return null;
        }

        return $charArray[$currPosition - 1];
    }