Removed uneccessary ternary statement