function checkForExistingData() {
        var deferred = $q.defer(); 
        
        deferred.resolve(true);
        return deferred;
        service.db_.select().from('products').exec().then(
          function(rows) {
            deferred.resolve(rows.length > 0);
          }
        );
      }
/**
      * Checks if any data exists in the DB.
      * @return {!angular.$q.Promise.<!boolean>}
      */
Checks if any data exists in the DB.
Checks if any data exists in the DB .
function checkForExistingData() {
        var deferred = $q.defer(); 
        deferred.resolve(true);
        return deferred;
        service.db_.select().from('products').exec().then(
          function(rows) {
            deferred.resolve(rows.length > 0);
          }
        );
      }
function checkForExistingData ( ) { var deferred = $q . defer ( ) ; deferred . resolve ( true ) ; return deferred ; service . db_ . select ( ) . from ( 'products' ) . exec ( ) . then ( function ( rows ) { deferred . resolve ( rows . length > 0 ) ; } ) ; }
Checks if any data exists in the DB.
Checks if any data exists in the DB .