simplify template logic by combining multiple checks in a single attribute in scope.