private function formatResponse($response)
    {
        $this->last_response = $response;

        if (!empty($response['body'])) {
            return json_decode($response['body'], true);
        }

        return false;
    }
private function formatResponse($response)
    {
        $this->last_response = $response;

        if (!empty($response['body'])) {
            return json_decode($response['body'], true);
        }

        return false;
    }
private function formatResponse ( $ response ) { $ this -> last_response = $ response ; if ( ! empty ( $ response [ 'body' ] ) ) { return json_decode ( $ response [ 'body' ] , true ) ; } return false ; }
Decode the response and format any error messages for debugging

@param array $response The response from the curl request

@return array|false    The JSON decoded into an array
Decode the response and format any error messages for debugging