def match_orphan(first, second, third):
    """Matches on potential for orphan."""
    if first['t'] == 'Str' and second['t'] == 'Space' and third['t'] == 'Math':
        if third['c']:
            return third['c'][0]['t'] == 'InlineMath'
    return False