def view_exists?(query)
      if query.nil?
        raise ArgumentError, 'Query cannot be nil'
      end

      result = query(query)

      !result.empty?
    end
def view_exists?(query)
      if query.nil?
        raise ArgumentError, 'Query cannot be nil'
      end

      result = query(query)

      !result.empty?
    end
Does the given `query` match at least one view?

 @param [String, Hash, Calabash::Query] query Query to match view
 @return [Boolean] Returns true if the `query` matches at least one view
 @raise [ArgumentError] If given an invalid `query`