I'm trying to check if a parameter is provided and passes a criteria, but seems verbose. This is what I have:

```
if (isset($request['limit']) && is_numeric($request['limit']) && (int)$request['limit'] > 0) {
    $post_params['posts_per_page'] = (int)$request['limit'];
}

```

I think it is safe, but is there a more concise way to achieve this while still remaining safe?