I still might put the ```query_conditions``` outside the ```if``` statement and use ```if !query_conditions.empty?```, or even switch the if/else, and not negate the ```.empty?```