check "null" value for returned data from server