Do a check for null docs