checking if there is a default value before setting data from req.query