Handling an error case better, some RPC systems may return nil.