Fixed Assert to use ternary.