move check_all_masks function to base class:Interp.