def term_check(type, segments) 
      (Setting.get(type) == segments[1] && (term.first.name == check || term.first.id == check || term.first.slug == check) ) ? true : false
    end
def term_check(type, segments) 
      (Setting.get(type) == segments[1] && (term.first.name == check || term.first.id == check || term.first.slug == check) ) ? true : false
    end
returns wether the current url is the given term type
 Params:
 +type+:: the type of term you want to check against
 +segments+:: pass in the segments of the url