protected function setNullForMissingKeys(array $leafCondition)
    {
        $keys = ['type', 'match', 'value'];
        foreach ($keys as $key) {
            $leafCondition[$key] = isset($leafCondition[$key]) ? $leafCondition[$key]: null;
        }

        return $leafCondition;
    }
protected function setNullForMissingKeys(array $leafCondition)
    {
        $keys = ['type', 'match', 'value'];
        foreach ($keys as $key) {
            $leafCondition[$key] = isset($leafCondition[$key]) ? $leafCondition[$key]: null;
        }

        return $leafCondition;
    }
protected function setNullForMissingKeys ( array $ leafCondition ) { $ keys = [ 'type' , 'match' , 'value' ] ; foreach ( $ keys as $ key ) { $ leafCondition [ $ key ] = isset ( $ leafCondition [ $ key ] ) ? $ leafCondition [ $ key ] : null ; } return $ leafCondition ; }
Sets null for missing keys in a leaf condition.

@param array $leafCondition The leaf condition node of an audience.
Sets null for missing keys in a leaf condition .