I tried this with
1. Taking a valid domain and role and got 1 as output
2. Taking a Invalid domain and role and got NULL as output
3. But, when i tried a Valid domain and invalid role, still i'm getting NULL as output.
Anybody help me with a sample scenario, to see 0 as output