Code cleanup

The ternary operator doesn't need to be in there, I think it looks cleaner and easier to understand without it. 

It will still return true or false