passing a nil in the polymorphic array is not supported. remove nils before you call the method