Removed redundant code after ternary conditional

Simple code clean-up. This shouldn't impact Joomla's behaviour in any way.

Code removed was redundant, as the operator already returns either `true` or `false`.