Better sanitize values

https://hackerone.com/reports/24185
```
$obj->total = 0;
$obj->nodeID = 0;
$obj->pageList = null;
$obj->results = null;
return $obj;
```