ensures isPublicClient returns boolean value