Use ternary short-cut.
Refactoring view stuff.