lookup-safe-total