Added table creation check