Updated IsConfigured() to check tenant table instead of user table