added is_undetermined helper function