Replaced a ternary operator because, quite frankly, I don't care for them and they make code hard to read.