```php
if ((null !== $page = $request->request->get('page')) && (null !== $limit = $request->request->get('limit'))) {
```