The ternary is unnecessary due to the previous `in_array()` test. If you want to allow a default value, the conditional starting on line 77 should first test `!empty($operator) && ...`.