Adding support to the RulesChecker to check entities before deleting them