The resulting code looks like
```python
    #print "in findDir",result
    if not result['OK']:
      return result
    if not result['Value']:
      return S_OK( 0 )

    return S_OK( result['Value'][0][0] )
```
See the "+" lines in the following.