you can set a default value for ```$page```
```php
public function getComments($page = 1)
```

and omit the if condition in L26.