check that setup is valid before using a table