Ternary Operator edit update to reflect ternary compounding of the if else conditional statement.