Determine if the response contains 'next_cursor' and 'next_cursor' is not empty. Returns: A boolean value.
(data)
| 38 | |
| 39 | |
| 40 | def _next_cursor_is_present(data) -> bool: |
| 41 | """Determine if the response contains 'next_cursor' |
| 42 | and 'next_cursor' is not empty. |
| 43 | |
| 44 | Returns: |
| 45 | A boolean value. |
| 46 | """ |
| 47 | present = ( |
| 48 | "response_metadata" in data |
| 49 | and "next_cursor" in data["response_metadata"] |
| 50 | and data["response_metadata"]["next_cursor"] != "" |
| 51 | ) |
| 52 | return present |
no outgoing calls