Should be
```
OC_JSON::success(array(
   "data" => $entries,
   "remain"=>(count(OC_Log_Owncloud::getEntries(1, $offset + $count)) != 0) ? true : false)
);
```

See the `);` in an own line, that's what I mean.