Fix: conditions.py: check if parent value is legal