       success: =>
         if @numberOfFeatured - featured.length > 0
           f = partnerShows.featured()
-          featured.push f
+          featured.push f if f? # only add it if it's really something
 
         exclude = if f then [f] else []
 

    @initializeShows()
    
  renderShows: (featured=[], current=[], upcoming=[], past=[]) ->
    @ensurePosterImages featured.concat current, upcoming, past
    @$el.html template
      partner: @partner

# upcoming, and past) in a grid layout.
# Used in overview and shows tab of partner galleries, overview tab
# of nonpartner galleries, and shows tab of institutions.
# Will hide itself if there is no shows.
module.exports = class PartnerShowsGridView extends Backbone.View

  defaults:
