You also need to check whether `contributors` is empty, because attempting to delete a product that has a contributor causes a database error (‘[MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`happymelly`.`contributions`, CONSTRAINT `CONTRIBUTION_FK` FOREIGN KEY (`PRODUCT_ID`) REFERENCES `product` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION)]’).