Added check empty method for tables