should this be 

var options = req.body || {};

?