Added a check to TableController.