Checking if @base is a Mongoid::Criteria or a regular object