Implementing `optionalAggregators` (#115)

Pull request for listed issue #115
This if statement doesn't need an else. You can just combine the conditions since the outcome is the same.