add find_or_default in function.h