should be 

```
if (empty($pks)) {
    return 0;
}
```
for code style and conventions.