If the upper rail is not kinked or bent too severely then it will be able to be straighted pretty easily by a body shop with a frame machine. Check your door /fender gap, hood gap etc to see how bad the damage is. Also check for cracked seam sealer around the strut tower/firewall etc. If you can...