Only applying rules if main-table is present