In if statement, you can write
if (AttrVal != null && AttrVal.Any())
EDIT: I'm wrong. The exception should come from First(), not any of Elements(). Old answer:
from el in root.Descendants("argument")
Or
from el in root.XPathSelectElements("./Script/arguments/argument")