Shouldn't we throw in case the client is undefined?