Removed unnecessary if ternary

On line 157, the attribute will return true or false, does not need ternary operator