Add sanity checks for condition-map in fn.