added const qualifier to hasClient function
added const qualifier