/**
  * Check if the table contains both row and column headers.
  * @return true if contains, otherwise, false
  */
 public static function hasScope()
 {
     global $global_e;
     // check if the table contains both row and column headers
     list($num_of_header_rows, $num_of_header_cols) = BasicChecks::getNumOfHeaderRowCol($global_e);
     if ($num_of_header_rows > 0 && $num_of_header_cols > 0) {
         foreach ($global_e->find("th") as $th) {
             if (!isset($th->attr["scope"])) {
                 return false;
             }
         }
     }
     return true;
 }