Added connectionExists() method