How to check fatching variable from inconfig has a value or not

Use this exact condition.

(Reasoning: your inConfig dictionary is not initialized and that’s why you get the null reference error.)