Made nestedAttributes conditional