You can’t really evaluate if it was bad or not unless you know what percentage of the total workforce was over 40 before the layoffs. The lower that number is (below 40%), the more disproportionate the action was.
What departments were affects most? Was seniority a factor? Was pay a factor? Were certain projects, departments, or teams exempt from layoffs? Without having very detailed data about who was let go and what the justification was nobody can say whether it was discriminatory.