Cool trick:
if/else can be replaced with condition and A or B (think about it - has to do with the way and/or work, and the fact that or is lazily evaluated )
So, can say:
return view in views and "active" or ""