Use || instead of ternary expression