You could return the results of the != directly and not need to use the ternary statement.
return n % 2 != 0;