Updating to handle empty-array result of has_many
tasks