use:

if (!client)