handle `expectKeys` case when missing data