Added check in xsec return to make sure key exists