``` and self.timeEnabled is not None and self.timeEnabled[i] ``` has to be there to check wheter the timeEnabled Parameter is set and wheter the feature[i] entry in this list is true. If this check is not there you could:
* not query time enabled layers together with normal layers
* not make a query without timeEnabled parameter