trying if statement inside .stream