moved an if statement outside of the for loop to prevent the loop from iterating and checking a variable which doesn't seemed to be modified inside the loop!
in the file: core/DataTable/Filter/ColumnDelete.php