library/Garp/Service/Google/Maps/Response.php
protected function _isValidResponse(array $response) {
        return (
            array_key_exists('results', $response) &&
            array_key_exists(0, $response['results']) &&
            array_key_exists('address_components', $response['results'][0]) &&
            array_key_exists('geometry', $response['results'][0])
        );
    }
protected function _isValidResponse(array $response) {
        return (
            array_key_exists('results', $response) &&
            array_key_exists(0, $response['results']) &&
            array_key_exists('address_components', $response['results'][0]) &&
            array_key_exists('geometry', $response['results'][0])
        );
    }
protected function _isValidResponse ( array $ response ) { return ( array_key_exists ( 'results' , $ response ) && array_key_exists ( 0 , $ response [ 'results' ] ) && array_key_exists ( 'address_components' , $ response [ 'results' ] [ 0 ] ) && array_key_exists ( 'geometry' , $ response [ 'results' ] [ 0 ] ) ) ; }
Validates Google API response.
@param Array $response
@return Void
Validates Google API response .