Removed unnecessary ternary operator