Perform check before getting the client