more robust check for table not exists

should work on HHVM too