I'd rather we make it cleaner... let's have filter(String term, Object value) and filter(String term, Object[] values) so  that the if statement below is not needed.