Could probably just check $this->fsock here and get rid of the is_connected property.