diff --git a/tablefield.module b/tablefield.module
index 46419ef..658a8f1 100644
--- a/tablefield.module
+++ b/tablefield.module
@@ -705,13 +705,16 @@ function tablefield_rebuild_form($form, &$form_state) {
  */
 function tablefield_rationalize_table($tablefield) {
   $tabledata = array();
+  
+  // Rationalize the table data
+  if (!empty($tablefield)) {
   // Remove exterraneous form data
   $count_cols = $tablefield['rebuild']['count_cols'];
   $count_rows = $tablefield['rebuild']['count_rows'];
   unset($tablefield['rebuild']);
   unset($tablefield['import']);
-  // Rationalize the table data
-  if (!empty($tablefield)) {
+ 
+
     foreach ($tablefield as $key => $value) {
       preg_match('/cell_(.*)_(.*)/', $key, $cell);
       // $cell[1] is row count $cell[2] is col count
