Added check if SystemCode parent exists