I guess (val === 'p' || val ==='m') might be better than either of our choices.