no foreach if empty  ec_activity