Update Client.php

Simplified if/else block