You don't need to check if it already has that class before trying to add it, since it already checks for duplicates before adding it!