function TableIsEmpty($table) { $queryParams = array('from' => $table); $query = new Query($queryParams); $numRows = $query->NumRows(); if ($numRows) { return false; } else { return true; } }