The 'rendered' method was added as the condition was so complex.