I've turned this into a ternary operation.