Refactoring of AdvancedSearchController includes the use of a tested method over an untested class method.

- Employs ActiveSupport's Object#present? method over AdvancedSearchController#nil_or_empty
- Cleans up code formatting a little