Improved GA support in the Api Libs

To limit code complexity it should combine both if checks into on.

```if ( isset( $raw_data->rows ) && is_array( $raw_data->rows ) ) {```