Get rid of unnecessary ternary operator

Condition `required == :required` is already boolean operation.
So we don't need to return `true` and `false` explicitly.