Modified else if condition to check if all columns are in guarded list instead if checking if a single column in list

Modified else if condition to check if all columns are in guarded list instead if checking if a single column in list