expand ternary opertator because PHPFail.