check for either disconnect or empty