checks for repsonse null closes #270