Add class to an empty element