Changed it to a one-liner using the ternary operator.