Programmatically check whether Client