Added nil check to template.
Removed assertions dependant on model counts.