FYI as long as `$options` is initialized, I don't feel there's a need to initialize `$options['wheres']` as an array. I frequently build up $options via plugin hooks, and there it's dangerous to set "wheres" to empty. Just a thought.