Removing redundant ternary operator (JSHint didn't catch that?)