check if length is 0 as we may have ssl data but not enough to decrypt