Helper function for handling NULL values returned from API calls.

handle_null(content, is_list = FALSE)

Arguments

content

Content returned from element of httr::content

is_list

Is content a list?