Change the safe_get_xxx() to try_get_xxx()