Look at my sexy inline if statement, LOOK AT IT
fix ternary and [close [#585]]