You can check it by turning the truck off, then unplug the EGR wiring harness and restart your truck. If there is a change in the idle (for the better) it's probably bad and needs replaced. Usually if the EGR valve is bad the engine will miss/ spit and sputter. If you live near an Autozone, they will check it for you for free. Is your check engine light on?