improving isConnected method
making it as a private packge of ValePresente.
lost changes re-applied