Use internal function to check table exists