Used a ternary operator on line 16