if/else refactor in Jack_Client_ptr()