making sure we have rows in tables before trying to apply
check for row count
success!