So yeah... instead of this kind of combined variable controlling multiple things, it would probably be a good idea to split out into two separate parameter... A boolean to control whether the given query to recurse, and an optional array of models on which to restrict.