original_string: protected function hasOldTables() {
          if(!file_exists(ASSETS_PATH.'/.codeBankMigrated')) {
              $tables=DB::tableList();
              if(array_key_exists('snippits', $tables) && array_key_exists('snippit_search', $tables)) {
                  return true;
              }else {
                  touch(ASSETS_PATH.'/.codeBankMigrated');
              }
          }
          
          return false;
      }
code: protected function hasOldTables() {
          if(!file_exists(ASSETS_PATH.'/.codeBankMigrated')) {
              $tables=DB::tableList();
              if(array_key_exists('snippits', $tables) && array_key_exists('snippit_search', $tables)) {
                  return true;
              }else {
                  touch(ASSETS_PATH.'/.codeBankMigrated');
              }
          }
          
          return false;
      }
code_tokens: protected function hasOldTables ( ) { if ( ! file_exists ( ASSETS_PATH . '/.codeBankMigrated' ) ) { $ tables = DB :: tableList ( ) ; if ( array_key_exists ( 'snippits' , $ tables ) && array_key_exists ( 'snippit_search' , $ tables ) ) { return true ; } else { touch ( ASSETS_PATH . '/.codeBankMigrated' ) ; } } return false ; }
docstring: Tests to see if the old tables exist
  @return {bool} Returns boolean true if the old tables are detected and the migration file is not detected
docstring_tokens: Tests to see if the old tables exist