I just rewrote this to to be a little simpler using a Ternary Statement.