Redid with ternary operator because I can and I was bored.