add get_if_exists to type