added isset to check for the option hiddenField