JSHint throws errors on inline if-else statements