Modified condition for accordion