do not write to disk if the server doesn't return anything useful
check for emptiness better