Checking Null Values before assigning parent fields