Added a method to check if the controller is connected