could you just use  options[:repoids].blank?