I'd find this a little easier to read/maintain with parens around the toLowerCase clause (makes it more explicit what precendence is intended). You don't need the === true, the && operators makes this expression boolean.